Update the seat assignment mode
curl --request POST \
--url https://api.coderabbit.ai/v1/users/seats/assignment \
--header 'Content-Type: application/json' \
--header 'x-coderabbitai-api-key: <api-key>' \
--data '
{
"mode": "manual"
}
'import requests
url = "https://api.coderabbit.ai/v1/users/seats/assignment"
payload = { "mode": "manual" }
headers = {
"x-coderabbitai-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-coderabbitai-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'manual'})
};
fetch('https://api.coderabbit.ai/v1/users/seats/assignment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mode": "manual"
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid enum value. Expected 'manual' | 'automatic', received 'invalid'"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or inactive API key"
}
}{
"error": {
"code": "NO_ACTIVE_SUBSCRIPTION",
"message": "No active subscription found for the organization"
}
}{
"error": {
"code": "SELF_HOSTED_ONLY",
"message": "This endpoint is only available for self-hosted instances"
}
}{
"error": {
"code": "LEGACY_API_KEY",
"message": "You are using a legacy API key. We are deprecating use of legacy keys. Regenerate a new API key and retry the request."
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "<string>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error while updating seat assignment mode"
}
}Update the seat assignment mode
Update the seat assignment mode for the organization. Only accessible by fully self-hosted organizations with enterprise plans. Rate limited to 10 requests per 60 seconds per organization.
POST
/
v1
/
users
/
seats
/
assignment
Update the seat assignment mode
curl --request POST \
--url https://api.coderabbit.ai/v1/users/seats/assignment \
--header 'Content-Type: application/json' \
--header 'x-coderabbitai-api-key: <api-key>' \
--data '
{
"mode": "manual"
}
'import requests
url = "https://api.coderabbit.ai/v1/users/seats/assignment"
payload = { "mode": "manual" }
headers = {
"x-coderabbitai-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-coderabbitai-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({mode: 'manual'})
};
fetch('https://api.coderabbit.ai/v1/users/seats/assignment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"mode": "manual"
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Invalid enum value. Expected 'manual' | 'automatic', received 'invalid'"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or inactive API key"
}
}{
"error": {
"code": "NO_ACTIVE_SUBSCRIPTION",
"message": "No active subscription found for the organization"
}
}{
"error": {
"code": "SELF_HOSTED_ONLY",
"message": "This endpoint is only available for self-hosted instances"
}
}{
"error": {
"code": "LEGACY_API_KEY",
"message": "You are using a legacy API key. We are deprecating use of legacy keys. Regenerate a new API key and retry the request."
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "<string>"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "Internal server error while updating seat assignment mode"
}
}- CLI Tool
- MCP Server
coderabbit api request /users/seats/assignment --input request.json
This operation isn’t a tool on the CodeRabbit MCP server. Call it over REST or from the CLI.
Authorizations
See Authentication for the key types and where to create a key.
Body
application/json
Was this page helpful?