Interface SpendLimitService
-
- All Implemented Interfaces:
public interface SpendLimitService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceSpendLimitService.WithRawResponseA view of SpendLimitService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract SpendLimitService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract SpendLimitService 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 EffectiveService effective()
-
increaseRequests
abstract IncreaseRequestService increaseRequests()
-
retrieve
BetaSpendLimit retrieve(String spendLimitId)
Retrieve a spend limit by ID.
-
retrieve
BetaSpendLimit retrieve(String spendLimitId, SpendLimitRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaSpendLimit retrieve(String spendLimitId, SpendLimitRetrieveParams params)
-
retrieve
abstract BetaSpendLimit retrieve(SpendLimitRetrieveParams params, RequestOptions requestOptions)
-
retrieve
BetaSpendLimit retrieve(SpendLimitRetrieveParams params)
-
retrieve
BetaSpendLimit retrieve(String spendLimitId, RequestOptions requestOptions)
-
list
SpendLimitListPage 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 SpendLimitListPage list(SpendLimitListParams params, RequestOptions requestOptions)
-
list
SpendLimitListPage list(SpendLimitListParams params)
-
list
SpendLimitListPage list(RequestOptions requestOptions)
-
delete
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
SpendLimitDeleteResponse delete(String spendLimitId, SpendLimitDeleteParams params, RequestOptions requestOptions)
-
delete
SpendLimitDeleteResponse delete(String spendLimitId, SpendLimitDeleteParams params)
-
delete
abstract SpendLimitDeleteResponse delete(SpendLimitDeleteParams params, RequestOptions requestOptions)
-
delete
SpendLimitDeleteResponse delete(SpendLimitDeleteParams params)
-
delete
SpendLimitDeleteResponse delete(String spendLimitId, RequestOptions requestOptions)
-
set
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 BetaSpendLimit set(SpendLimitSetParams params, RequestOptions requestOptions)
-
-
-
-