PUT /repositories/{workspace}/{repo_slug}/branch-restrictions/{id}
Updates an existing branch restriction rule.
Fields not present in the request body are ignored.
See POST
for details.
Servers
- https://api.bitbucket.org/2.0
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes |
The restriction rule's id |
repo_slug |
String | Yes |
This can either be the repository slug or the UUID of the repository,
surrounded by curly-braces, for example: |
workspace |
String | Yes |
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | No |
The branch restriction status' id. |
groups[] |
Array | No | |
groups[].name |
String | No | |
groups[].slug |
String | No |
The "sluggified" version of the group's name. This contains only ASCII characters and can therefore be slightly different than the name |
groups[].type |
String | Yes | |
groups[].full_slug |
String | No |
The concatenation of the workspace's slug and the group's slug,
separated with a colon (e.g. |
groups[].links |
Object | No | |
groups[].links.html |
Object | No |
A link to a resource related to this object. |
groups[].links.html.href |
String | No | |
groups[].links.html.name |
String | No | |
groups[].links.self |
Object | No |
A link to a resource related to this object. |
groups[].links.self.href |
String | No | |
groups[].links.self.name |
String | No | |
type |
String | Yes | |
branch_match_kind |
String | Yes |
Indicates how the restriction is matched against a branch. The default is Possible values:
|
value |
Integer | No |
Value with kind-specific semantics:
|
kind |
String | Yes |
The type of restriction that is being applied. Possible values:
|
users[] |
Array | No | |
users[].uuid |
String | No | |
users[].created_on |
String | No | |
users[].type |
String | Yes | |
users[].display_name |
String | No | |
users[].links |
Object | No |
Links related to an Account. |
users[].links.avatar |
Object | No |
A link to a resource related to this object. |
users[].links.avatar.href |
String | No | |
users[].links.avatar.name |
String | No | |
links |
Object | No | |
links.self |
Object | No |
A link to a resource related to this object. |
links.self.href |
String | No | |
links.self.name |
String | No | |
pattern |
String | Yes |
Apply the restriction to branches that match this pattern. Active when |
branch_type |
String | No |
Apply the restriction to branches of this type. Active when Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.