Github API - Test Config

PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
users
repos

Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's products in the GitHub Help documentation.

Replaces the list of people that have push access to this branch. This removes all people that previously had push access and grants push access to the new list of people.

Type Description
array Usernames for people who can have push access. Note: The list of users, apps, and teams in total is limited to 100 items.
Set user access restrictions

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 branch

branch [scalar]

The name of the branch. Cannot contain wildcard characters. To use wildcard characters in branch names, use the GraphQL API.

API:
Github Open API
(version: 1.1.4)

Returns
200 application/json simple-user []

simple-user [object]

A GitHub user.

Attributes
avatar_url string

email string

events_url string

followers_url string

following_url string

gists_url string

gravatar_id string

html_url string

id integer

login string

name string

node_id string

organizations_url string

received_events_url string

repos_url string

site_admin boolean

starred_at string

starred_url string

subscriptions_url string

type string

url string

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

validation_failed [scalar]

Validation failed, or the endpoint has been spammed.

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