Interface SpendLimitServiceAsync
-
- All Implemented Interfaces:
public interface SpendLimitServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSpendLimitServiceAsync.WithRawResponseA view of SpendLimitServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract SpendLimitServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SpendLimitServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
effective
abstract EffectiveServiceAsync effective()
-
increaseRequests
abstract IncreaseRequestServiceAsync increaseRequests()
-
retrieve
CompletableFuture<BetaSpendLimit> retrieve(String spendLimitId)
Retrieve a spend limit by ID.
-
retrieve
CompletableFuture<BetaSpendLimit> retrieve(String spendLimitId, SpendLimitRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaSpendLimit> retrieve(String spendLimitId, SpendLimitRetrieveParams params)
-
retrieve
abstract CompletableFuture<BetaSpendLimit> retrieve(SpendLimitRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaSpendLimit> retrieve(SpendLimitRetrieveParams params)
-
retrieve
CompletableFuture<BetaSpendLimit> retrieve(String spendLimitId, RequestOptions requestOptions)
-
list
CompletableFuture<SpendLimitListPageAsync> list()
List the organization's spend limits.
A Claude Console organization's limits, including any read-only
usage_tierlimit, come newest first. Listing them is in an early access preview. To request access, contact your Anthropic account team. A Claude Enterprise organization's limits are grouped by scope type, in the orderorganization,seat_tier,rbac_group,organization_service,user; within a type they come in a fixed order that is not creation order.
-
list
abstract CompletableFuture<SpendLimitListPageAsync> list(SpendLimitListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<SpendLimitListPageAsync> list(SpendLimitListParams params)
-
list
CompletableFuture<SpendLimitListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<SpendLimitDeleteResponse> delete(String spendLimitId)
Delete a spend limit.
For a Claude Enterprise organization, this deletes a per-user override, and the member falls back to any inherited spend limit at that period. Its seat-tier, group, and organization-level rows cannot be deleted via this endpoint. A Claude Console organization deletes its organization and workspace limits, but not its
usage_tierlimit. Deleting organization and workspace limits through the API is in an early access preview.
-
delete
CompletableFuture<SpendLimitDeleteResponse> delete(String spendLimitId, SpendLimitDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<SpendLimitDeleteResponse> delete(String spendLimitId, SpendLimitDeleteParams params)
-
delete
abstract CompletableFuture<SpendLimitDeleteResponse> delete(SpendLimitDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<SpendLimitDeleteResponse> delete(SpendLimitDeleteParams params)
-
delete
CompletableFuture<SpendLimitDeleteResponse> delete(String spendLimitId, RequestOptions requestOptions)
-
set
CompletableFuture<BetaSpendLimit> set(SpendLimitSetParams params)
Set a spend limit.
Upsert keyed on (scope, period): setting a limit that already exists overwrites it in place. A Claude Enterprise organization sets
userlimits. Its seat-tier, group, and organization-level defaults are configured in claude.ai. A Claude Console organization setsorganizationandworkspacelimits, which are monthly and always carry an amount. Setting those limits is in an early access preview. To request access, contact your Anthropic account team.
-
set
abstract CompletableFuture<BetaSpendLimit> set(SpendLimitSetParams params, RequestOptions requestOptions)
-
-
-
-