Claude Platform Docs

지출 한도 삭제

client.Beta.Organization.SpendLimits.Delete(ctx, spendLimitID) (*BetaOrganizationSpendLimitDeleteResponse, error)
DELETE/v1/organizations/spend_limits/{spend_limit_id}

지출 한도를 삭제합니다.

Claude Enterprise 조직의 경우 사용자별 재정의를 삭제하며, 해당 멤버에게는 그 기간에 상속된 지출 한도가 있으면 그 한도가 적용됩니다. 시트 등급, 그룹 및 조직 수준 행은 이 엔드포인트를 통해 삭제할 수 없습니다. Claude Console 조직은 조직 및 워크스페이스 한도를 삭제하지만, usage_tier 한도는 삭제하지 않습니다. API를 통한 조직 및 워크스페이스 한도 삭제는 얼리 액세스 프리뷰 단계입니다.

Parameters
spendLimitID string⁠Path parameter

ID of the Spend Limit.

Returns
type BetaOrganizationSpendLimitDeleteResponse struct { Type: "spend_limit_deleted"; ID }
Type SpendLimitDeleted
defaultspend_limit_deleted
ID string
지출 한도 삭제
package main

import (
	"context"
	"fmt"

	"github.com/anthropics/anthropic-sdk-go"
	"github.com/anthropics/anthropic-sdk-go/option"
)

func main() {
	client := anthropic.NewClient(
		option.WithAPIKey("my-anthropic-api-key"),
	)
	spendLimit, err := client.Beta.Organization.SpendLimits.Delete(context.TODO(), "spend_limit_id")
	if err != nil {
		panic(err.Error())
	}
	fmt.Printf("%+v\n", spendLimit.ID)
}
Returns Examples
Response 200
{
  "id": "id",
  "type": "spend_limit_deleted"
}