Skip to main content
POST
Assign or unassign seats for multiple users

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

API key for authentication

Body

application/json
action
enum<string>
required

The action to perform on the seats

Available options:
assign,
unassign
Example:

"assign"

user_ids
string[]
required

Array of user IDs to assign or unassign seats for

Required array length: 1 - 500 elements

Provider user ID (Git provider's user identifier)

Minimum string length: 1
Example:

Response

Seat management completed (partial or full success)

status
enum<string>
required

Status of the operation - "success" if all succeeded, "partial_success" if some succeeded and some failed, "failure" if all failed

Available options:
success,
partial_success,
failure
Example:

"success"

succeeded
string[]
required

Array of identifiers that were successfully processed (echoes whichever identifier each member supplied - provider user id, email, or cr_user_id)

Example:
failed
object[]
required

Array of failed users with error codes

Example: