POST
/organization/projects/{project_id}/rate_limits/{rate_limit_id}Update a project rate limit
Updates a rate limit configuration for a project. Use project_id and rate_limit_id to identify the project and rate limit, then provide the limit values to change. The response returns the updated rate limit configuration.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
project_idstringrequired
The ID of the project.
rate_limit_idstringrequired
The ID of the rate limit to update.
Rate limit values to update for the project.
max_requests_per_1_minuteintegeroptional
The maximum requests per minute.
max_tokens_per_1_minuteintegeroptional
The maximum tokens per minute.
max_images_per_1_minuteintegeroptional
The maximum images per minute. Only relevant for certain models.
max_audio_megabytes_per_1_minuteintegeroptional
The maximum audio megabytes per minute. Only relevant for certain models.
max_requests_per_1_dayintegeroptional
The maximum requests per day. Only relevant for certain models.
batch_1_day_max_input_tokensintegeroptional
The maximum batch input tokens per day. Only relevant for certain models.
200Returns the updated project rate limit configuration, including its ID, model, and configured limits.
objectstringrequired
The object type, which is always `project.rate_limit`
idstringrequired
The identifier, which can be referenced in API endpoints.
modelstringrequired
The model this rate limit applies to.
max_requests_per_1_minuteintegerrequired
The maximum requests per minute.
max_tokens_per_1_minuteintegerrequired
The maximum tokens per minute.
max_images_per_1_minuteintegeroptional
The maximum images per minute. Only present for relevant models.
max_audio_megabytes_per_1_minuteintegeroptional
The maximum audio megabytes per minute. Only present for relevant models.
max_requests_per_1_dayintegeroptional
The maximum requests per day. Only present for relevant models.
batch_1_day_max_input_tokensintegeroptional
The maximum batch input tokens per day. Only present for relevant models.
400Returned when the request cannot be processed.
errorobjectrequired
403Returned when the caller does not have permission to perform this operation.
errorobjectrequired
Details about the permission error.
404Returned when the project was not found.
One documented failure
project_not_foundThe project proj_abc was not found
errorobjectrequired
Error handling
A 400 is returned when the request cannot be processed, a 403 when the caller lacks permission, and a 404 when the project is not found. The project_id and rate_limit_id path parameters identify the project and rate limit to update. Any supplied limit values must be integers.