Claude Platform Docs

支出上限引き上げリクエストを承認

$ ant beta:organization:spend-limits:increase-requests approve
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

保留中の支出上限引き上げリクエストを承認します。

リクエスト者に対して amount のユーザーごとの支出上限を書き込み、リクエストを approved に遷移させます。period のデフォルトは、メンバーがブロックされた期間です。suppress_notification が設定されていない限り、Anthropicはリクエスト者にメールを送信します。

Parameters
--spend-limit-increase-request-id: string⁠Path parameter

ID of the spend limit increase request.

--amount: string

New per-user spend limit as a non-negative integer decimal string (minor units).

--period: optional BetaSpendLimitPeriod
One of the following:
"daily"
"monthly"
"weekly"
--suppress-notification: optional boolean
Returns
BetaOrganizationSpendLimitIncreaseRequestApproveResponse: object{ type: "spend_limit_increase_request", id, actor, 7 more }
type: "spend_limit_increase_request"
id: string

Who submitted the increase request.

One of the following:
created_at: string
formatdate-time
period: "daily" or "monthly" or "weekly"
One of the following:
"daily"
"monthly"
"weekly"
resolved_at: string
formatdate-time

Who approved or denied the increase request.

One of the following:
spend_limit: object{ type: "spend_limit", id, amount, 6 more }

A configured spend limit: a cap on metered spend for one scope and period.

spend_summary: object{ actor, amount, currency, 5 more }

Per-member effective-limit report row (GET /spend_limits/effective).

status: "approved" or "denied" or "pending"
One of the following:
"approved"
"denied"
"pending"
支出上限引き上げリクエストを承認
ant beta:organization:spend-limits:increase-requests approve \
  --spend-limit-increase-request-id spend_limit_increase_request_id \
  --amount 50000
Returns Examples
Response 200
{
  "id": "id",
  "actor": {
    "deleted": true,
    "email_address": "email_address",
    "name": "name",
    "type": "user_actor",
    "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
  },
  "created_at": "2019-12-27T18:11:19.117Z",
  "period": "daily",
  "resolved_at": "2019-12-27T18:11:19.117Z",
  "resolved_by": {
    "deleted": true,
    "email_address": "email_address",
    "name": "name",
    "type": "user_actor",
    "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
  },
  "spend_limit": {
    "id": "id",
    "amount": "50000",
    "created_at": "2019-12-27T18:11:19.117Z",
    "currency": "USD",
    "is_enabled": true,
    "period": "daily",
    "scope": {
      "type": "user",
      "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
    },
    "type": "spend_limit",
    "updated_at": "2019-12-27T18:11:19.117Z"
  },
  "spend_summary": {
    "actor": {
      "deleted": true,
      "email_address": "email_address",
      "name": "name",
      "type": "user_actor",
      "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
    },
    "amount": "50000",
    "currency": "USD",
    "period": "daily",
    "period_to_date_spend": "12050.5",
    "scope": {
      "type": "user",
      "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
    },
    "source": {
      "type": "user",
      "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu"
    },
    "spend_limit_id": "spend_limit_id"
  },
  "status": "approved",
  "type": "spend_limit_increase_request"
}