Skip to main content
POST

Authorizations

x-coderabbitai-api-key
string
header
required

API key for authentication. You can create an API key from the CodeRabbit dashboard.

Headers

x-coderabbitai-api-key
string
required

Your CodeRabbit API key

Body

application/json

Request to change user roles

role
string
required

Role ID to assign. Use cr_admin, cr_member, or a custom role UUID. cr_billing_admin cannot be assigned through this endpoint.

Minimum string length: 1
user_ids
string[]
required

Array of provider user IDs

Required array length: 1 - 500 elements
Minimum string length: 1
org_id
string

Required for workspace-scoped API keys: the provider organization ID within the workspace. For self-hosted instance keys, use a provider organization ID or ALL (case-insensitive) to apply the role change across active organizations on that instance. Omit it to preserve single-organization behavior for self-hosted keys. Organization keys remain bound to their own organization; ALL is valid only for self-hosted instance keys.

Minimum string length: 1

Response

Operation completed (check status field for partial failures)

Response for bulk operations with partial success model

status
enum<string>
required

Operation status: 'success' if all succeeded, 'partial_success' if some succeeded, 'failure' if all failed

Available options:
success,
partial_success,
failure
succeeded
string[]
required

Array of user IDs that were successfully processed

failed
object[]
required

Array of failures with error details