Claude Platform Docs

Удалить лимит расходов

SpendLimitDeleteResponse beta().organization().spendLimits().delete(params = SpendLimitDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/spend_limits/{spend_limit_id}

Удаление лимита расходов.

Для организации Claude Enterprise удаляется индивидуальное переопределение для пользователя, и для участника начинает действовать унаследованный лимит расходов за этот период, если он есть. Её записи уровня типа места, группы и организации нельзя удалить через эту конечную точку. Организация Claude Console удаляет свои лимиты уровня организации и рабочего пространства, но не свой лимит usage_tier. Удаление лимитов уровня организации и рабочего пространства через API доступно в рамках предварительной версии с ранним доступом.

Parameters
SpendLimitDeleteParams params
Optional<String> spendLimitId⁠Path parameter

ID of the Spend Limit.

Returns
class SpendLimitDeleteResponse { type = "spend_limit_deleted"; id; }
JsonValue type = "spend_limit_deleted"
String id
Удалить лимит расходов
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");
    }
}
Returns Examples
Response 200
{
  "id": "id",
  "type": "spend_limit_deleted"
}