Github API - Test Config

PUT /repos/{owner}/{repo}/environments/{environment_name}
repos

Create or update an environment with protection rules, such as required reviewers. For more information about environment protection rules, see "Environments."

Note: To create or update name patterns that branches must match in order to deploy to this environment, see "Deployment branch policies."

Note: To create or update secrets for an environment, see "Secrets."

You must authenticate using an access token with the repo scope to use this endpoint. GitHub Apps must have the administration:write permission for the repository to use this endpoint.
Create or update an environment

Arguments
key owner

owner [scalar]

The account owner of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key repo

repo [scalar]

The name of the repository. The name is not case sensitive.

API:
Github Open API
(version: 1.1.4)

key environment-name

environment-name [scalar]

The name of the environment.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json environment

environment [object]

Details of a deployment environment

Attributes
created_at string

The time that the environment was created, in ISO 8601 format.

deployment_branch_policy deployment-branch-policy-settings

html_url string

id integer

The id of the environment.

name string

The name of the environment.

node_id string

protection_rules unknown []

updated_at string

The time that the environment was last updated, in ISO 8601 format.

url string

API:
Github Open API
(version: 1.1.4)
422 application/json basic-error

basic-error [object]

Basic Error

Attributes
documentation_url string

message string

status string

url string

API:
Github Open API
(version: 1.1.4)
API:
Github Open API
(version: 1.1.4)