cURL
curl --request PATCH \ --url https://api.example.com/api/rulesets/{ruleset_id} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "rules_text": "<string>", "repo_ids": [ "<string>" ] } '
{ "id": "<string>", "name": "<string>", "description": "<string>", "rules_text": "<string>", "org_id": "<string>", "repo_ids": [ "<string>" ], "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "created_by": "<string>" }
Use an API key in the X-API-Key header.
Successful Response
Was this page helpful?