Set Workspace Rate Limits
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}
Set or clear rate-limit overrides for one rate-limit group in a workspace.
Only the limiter types named in limits change: an integer value sets
that type's override and null clears it. Types not named keep their
current value. A value above the organization's own limit is stored, but
the organization limit still applies, so the lower of the two is
enforced.
Returns the targeted group's entry with this request applied, in the shape
GET /v1/organizations/workspaces/{workspace_id}/rate_limits returns.
Changes take effect within about an hour.
Parameters
Returns
Set Workspace Rate Limits
ant beta:organization:workspaces:rate-limits update \
--api-key my-anthropic-api-key \
--workspace-id workspace_id \
--rate-limit-id rate_limit_id \
--limit '{type: fast_itpmca, value: 0}'Response 200
{
"group": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"source": {
"type": "workspace"
},
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"rate_limit_id": "rate_limit_id",
"type": "workspace_rate_limit",
"workspace_id": "workspace_id"
}Returns Examples
Response 200
{
"group": {
"id": "id",
"display_name": "display_name",
"type": "model_group"
},
"group_type": "batch",
"limits": [
{
"org_limit": 0,
"source": {
"type": "workspace"
},
"type": "type",
"value": 0
}
],
"models": [
"string"
],
"rate_limit_id": "rate_limit_id",
"type": "workspace_rate_limit",
"workspace_id": "workspace_id"
}