Claude Platform Docs

Set Workspace Rate Limits

BetaWorkspaceRateLimit Beta.Organization.Workspaces.RateLimits.Update(parameters, cancellationToken = default)
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
RateLimitUpdateParams parameters
required string workspaceID⁠Path parameter

The ID of the workspace.

required string rateLimitID⁠Path parameter

The id of the organization's rate-limit entry to set overrides for.

required IReadOnlyList<BetaWorkspaceRateLimitUpdateValue> limits

Limits to set or clear. Unspecified limit types are unchanged.

minItems1
maxItems16

Rate limiter type.

One of the following:
FastItpmca("fast_itpmca")
FastOtpm("fast_otpm")
InputTokensPerMinute("input_tokens_per_minute")
InputTokensPerMinuteCacheAware("input_tokens_per_minute_cache_aware")
OutputTokensPerMinute("output_tokens_per_minute")
RequestsPerMinute("requests_per_minute")
TokensPerDay("tokens_per_day")
TokensPerMinute("tokens_per_minute")
ToolUsesPerSecond("tool_uses_per_second")
required long? Value

New limit value. Set to null to clear the workspace override and fall back to the organization limit.

minimum0
maximum9007199254740991
Returns
class BetaWorkspaceRateLimit { Type = "workspace_rate_limit"; Group; Limits; /* 3 more */ }
Set Workspace Rate Limits
using System;
using Anthropic.Models.Beta.Organization.Workspaces.RateLimits;

RateLimitUpdateParams parameters = new()
{
    WorkspaceID = "workspace_id",
    RateLimitID = "rate_limit_id",
    Limits =
    [
        new()
        {
            Type = BetaWorkspaceRateLimitType.FastItpmca,
            Value = 0,
        },
    ],
};

var betaWorkspaceRateLimit = await client.Beta.Organization.Workspaces.RateLimits.Update(parameters);

Console.WriteLine(betaWorkspaceRateLimit);
Returns Examples
Response 200
{
  "group": {
    "id": "id",
    "display_name": "display_name",
    "type": "model_group"
  },
  "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"
}