Claude Platform Docs

워크스페이스 속도 제한 설정

POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

워크스페이스에서 하나의 속도 제한 그룹에 대한 속도 제한 재정의를 설정하거나 해제합니다.

limits에 지정된 제한기 유형만 변경됩니다. 정수 value는 해당 유형의 재정의를 설정하고 null은 이를 해제합니다. 지정되지 않은 유형은 현재 값을 유지합니다. 조직 자체 제한보다 높은 값도 저장되지만 조직 제한이 여전히 적용되므로 둘 중 낮은 값이 적용됩니다.

이 요청이 적용된 대상 그룹의 항목을 GET /v1/organizations/workspaces/{workspace_id}/rate_limits가 반환하는 형식으로 반환합니다. 변경 사항은 약 1시간 이내에 적용됩니다.

Path parameters
workspace_id: string

The ID of the workspace.

rate_limit_id: string

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

Headers
"anthropic-version": optional string

The version of the Claude API you want to use.

Read more about versioning and our version history here.

Body
limits: array of BetaWorkspaceRateLimitUpdateValue { type, value }

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

minItems1
maxItems16

Rate limiter type.

One of the following:
"fast_itpmca"
"fast_otpm"
"input_tokens_per_minute"
"input_tokens_per_minute_cache_aware"
"output_tokens_per_minute"
"requests_per_minute"
"tokens_per_day"
"tokens_per_minute"
"tool_uses_per_second"
value: number or null

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

minimum0
maximum9007199254740991
Returns
BetaWorkspaceRateLimit object{ type: "workspace_rate_limit", group, group_type, 4 more }
워크스페이스 속도 제한 설정
curl https://api.anthropic.com/v1/organizations/workspaces/$WORKSPACE_ID/rate_limits/$RATE_LIMIT_ID \
    -H 'Content-Type: application/json' \
    -H 'anthropic-version: 2023-06-01' \
    -H "X-Api-Key: $ANTHROPIC_API_KEY" \
    -d '{
          "limits": [
            {
              "type": "fast_itpmca",
              "value": 0
            }
          ]
        }'
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"
}