PUT /orgs/{org}/rulesets/{ruleset_id}
Update a ruleset for an organization.
Servers
- https://api.github.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
org |
String | Yes |
The organization name. 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 |
Conditions for an organization ruleset.
The branch and tag rulesets conditions object should contain both |
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.