PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}
Update a ruleset for a repository.
Servers
- https://api.github.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
repo |
String | Yes |
The name of the repository without the |
owner |
String | Yes |
The account owner of the repository. The name is not case sensitive. |
ruleset_id |
Integer | Yes |
The ID of the ruleset. |
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 |
---|---|---|---|
rules[] |
Array | No |
An array of rules within the ruleset. |
name |
String | No |
The name of the ruleset. |
target |
String | No |
The target of the ruleset Possible values:
|
conditions |
Object | No |
Parameters for a repository ruleset ref name condition |
conditions.ref_name |
Object | No | |
conditions.ref_name.include[] |
Array | No |
Array of ref names or patterns to include. One of these patterns must match for the condition to pass. Also accepts |
conditions.ref_name.exclude[] |
Array | No |
Array of ref names or patterns to exclude. The condition will not pass if any of these patterns match. |
bypass_actors[] |
Array | No |
The actors that can bypass the rules in this ruleset |
bypass_actors[].bypass_mode |
String | No |
When the specified actor can bypass the ruleset. Possible values:
Default value: "always" |
bypass_actors[].actor_id |
Integer | No |
The ID of the actor that can bypass a ruleset. If |
bypass_actors[].actor_type |
String | Yes |
The type of actor that can bypass a ruleset. Possible values:
|
enforcement |
String | No |
The enforcement level of the ruleset. 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.