Update Protection Branch Rules
PUT/api/v5/repos/:owner/:repo/branches/:wildcard/setting
Request
Path Parameters
Repository space address (organization or individual's address path)
Repository path (path)
Protect branch name
Query Parameters
User authorization code
- application/json
Body
Please push code members. develop: repository administrator and developer; admin: repository administrator; maintainer: maintainer; multiple roles separated by English semicolons. Specify the user to pass in the username, multiple users separated by English semicolons. Empty string: no one is allowed to push.
Pull Request members. develop: repository administrator and developer; admin: repository administrator; maintainer: maintainer; multiple roles are separated by English semicolons. Specify the user, enter the username, multiple users are separated by English semicolons. Empty string: no one is allowed to merge.
Responses
- 200
Successful Response
Response Headers
- application/json
- Schema
- Example (auto)
Schema
{}