刪除支出限制
DELETE/v1/organizations/spend_limits/{spend_limit_id}
刪除支出限制。
對於 Claude Enterprise 組織,此操作會刪除個別使用者的覆寫設定,該成員會改為套用該週期內任何繼承的支出限制。其席位層級、群組及組織層級的資料列無法透過此端點刪除。Claude Console 組織可刪除其組織與工作區限制,但無法刪除其 usage_tier 限制。透過 API 刪除組織與工作區限制目前處於搶先體驗預覽階段。
Parameters
Returns
刪除支出限制
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.spendlimits.SpendLimitDeleteParams;
import com.anthropic.models.beta.organization.spendlimits.SpendLimitDeleteResponse;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
SpendLimitDeleteResponse spendLimit = client.beta().organization().spendLimits().delete("spend_limit_id");
}
}Response 200
{
"id": "id",
"type": "spend_limit_deleted"
}Returns Examples
Response 200
{
"id": "id",
"type": "spend_limit_deleted"
}