Claude Platform Docs

지출 한도 증액 요청 거부

$client->organization->spendLimits->increaseRequests->deny(string spendLimitIncreaseRequestID, ?bool suppressNotification): SpendLimitIncreaseRequest
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

대기 중인 지출 한도 증액 요청을 거부합니다.

denied에 대해 멱등적입니다. 이미 approved된 요청을 거부하면 400을 반환합니다. suppress_notification이 설정되지 않은 경우 Anthropic이 요청자에게 이메일을 보냅니다.

Parameters
spendLimitIncreaseRequestID: string⁠Path parameter

ID of the spend limit increase request.

suppressNotification?: optional bool
Returns
class SpendLimitIncreaseRequest { $type = 'spend_limit_increase_request'; $id; $actor; /* 6 more */ }
"spend_limit_increase_request" type
string id

Who submitted the increase request.

\Datetime createdAt
?\Datetime resolvedAt

Who approved or denied the increase request.

?SpendSummary spendSummary

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

지출 한도 증액 요청 거부
<?php

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

use Anthropic\Client;

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

$spendLimitIncreaseRequest = $client
  ->organization
  ->spendLimits
  ->increaseRequests
  ->deny('spend_limit_increase_request_id', suppressNotification: true);

var_dump($spendLimitIncreaseRequest);
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_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"
}