Github API - Test Config

PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}
repos

Updates a deployment branch policy for an environment.

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.
Update a deployment branch policy

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)

key branch-policy-id

branch-policy-id [scalar]

The unique identifier of the branch policy.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json deployment-branch-policy

deployment-branch-policy [object]

Details of a deployment branch policy.

Attributes
id integer

The unique identifier of the branch policy.

name string

The name pattern that branches must match in order to deploy to the environment.

node_id string

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