Claude Platform Docs

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

$client->beta->organization->workspaces->rateLimits->update(string rateLimitID, string workspaceID, list<BetaWorkspaceRateLimitUpdateValue> limits): BetaWorkspaceRateLimit
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

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

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

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

Parameters
workspaceID: string⁠Path parameter

The ID of the workspace.

rateLimitID: string⁠Path parameter

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

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

Returns
class BetaWorkspaceRateLimit { $type = 'workspace_rate_limit'; $group; $limits; /* 3 more */ }
"workspace_rate_limit" type

Object type. Always workspace_rate_limit for workspace rate-limit entries.

Group group

The rate-limit group this entry's limits apply to.

The workspace's limiter values for this group. By default only the limiter types with a workspace-level override are listed. With include_inherited set to true, the limiter types the workspace inherits from the organization are listed too, each marked by source.

?list<string> models

Model names this entry's limits apply to, including aliases. null when group.type is not "model_group". The list covers the models this workspace has access to, so it can differ between workspaces.

string rateLimitID

The id of the organization's RateLimit entry this entry applies to.

string workspaceID

ID of the Workspace this entry applies to.

워크스페이스 속도 제한 설정
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;
use Anthropic\Beta\Organization\Workspaces\RateLimits\BetaWorkspaceRateLimitType;

$client = new Client(apiKey: 'my-anthropic-api-key');

$betaWorkspaceRateLimit = $client
  ->beta
  ->organization
  ->workspaces
  ->rateLimits
  ->update(
  'rate_limit_id',
  workspaceID: 'workspace_id',
  limits: [['type' => BetaWorkspaceRateLimitType::FAST_ITPMCA, 'value' => 0]],
);

var_dump($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"
}