Set a change's manual priority
curl --request PUT \
--url https://api.coderabbit.ai/v1/triage/changes/{id}/priority \
--header 'Content-Type: application/json' \
--header 'x-coderabbitai-api-key: <api-key>' \
--data '
{
"expected_revision": "<string>",
"idempotency_key": "<string>",
"org_id": "<string>",
"reason": "<string>",
"org_name": "<string>"
}
'import requests
url = "https://api.coderabbit.ai/v1/triage/changes/{id}/priority"
payload = {
"expected_revision": "<string>",
"idempotency_key": "<string>",
"org_id": "<string>",
"reason": "<string>",
"org_name": "<string>"
}
headers = {
"x-coderabbitai-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-coderabbitai-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_revision: '<string>',
idempotency_key: '<string>',
org_id: '<string>',
reason: '<string>',
org_name: '<string>'
})
};
fetch('https://api.coderabbit.ai/v1/triage/changes/{id}/priority', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "updated",
"current": {
"urgency": "p0",
"score": 50,
"actor": {
"id": "<string>",
"name": "<string>",
"avatar_url": "<string>"
},
"changed_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unauthenticated",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "head_changed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "precondition_failed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unavailable",
"message": "<string>",
"retry_after": 1
}
}Set a change's manual priority
Applies p0–p3 using existing seated-user and repository authorization. Read priority.revision from change detail first. Reuse the same idempotency_key and expected_revision for an uncertain retry; duplicate commands return the latest current state. A new command against stale priority returns conflict. This does not close a pull request or clear an override.
PUT
/
v1
/
triage
/
changes
/
{id}
/
priority
Set a change's manual priority
curl --request PUT \
--url https://api.coderabbit.ai/v1/triage/changes/{id}/priority \
--header 'Content-Type: application/json' \
--header 'x-coderabbitai-api-key: <api-key>' \
--data '
{
"expected_revision": "<string>",
"idempotency_key": "<string>",
"org_id": "<string>",
"reason": "<string>",
"org_name": "<string>"
}
'import requests
url = "https://api.coderabbit.ai/v1/triage/changes/{id}/priority"
payload = {
"expected_revision": "<string>",
"idempotency_key": "<string>",
"org_id": "<string>",
"reason": "<string>",
"org_name": "<string>"
}
headers = {
"x-coderabbitai-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-coderabbitai-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
expected_revision: '<string>',
idempotency_key: '<string>',
org_id: '<string>',
reason: '<string>',
org_name: '<string>'
})
};
fetch('https://api.coderabbit.ai/v1/triage/changes/{id}/priority', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"status": "updated",
"current": {
"urgency": "p0",
"score": 50,
"actor": {
"id": "<string>",
"name": "<string>",
"avatar_url": "<string>"
},
"changed_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unauthenticated",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "head_changed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "precondition_failed",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "payload_too_large",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"retry_after": 1
}
}{
"error": {
"code": "unavailable",
"message": "<string>",
"retry_after": 1
}
}- CLI Tool
- MCP Server
coderabbit api request -X PUT "/triage/changes/$ID/priority" --input request.json
An agent connected to the CodeRabbit MCP server runs this operation as the
set_triage_change_priority tool. The connection selects the organization, so the arguments have no org_id or org_name.{
"method": "tools/call",
"params": {
"name": "set_triage_change_priority",
"arguments": {
"id": "<id>",
"urgency": "p0",
"expected_revision": "<expected_revision>",
"idempotency_key": "<idempotency_key>"
}
}
}
Authorizations
See Authentication for the key types and where to create a key.
Body
application/json
Organization for a workspace key: the Git-provider organization ID (scope.provider_organization_id) or the CodeRabbit organization ID (scope.id, or id from list organizations). Supply either org_id or org_name, never both. Omit for organization keys and MCP connections.
Minimum string length:
1Was this page helpful?