Approve Spend Limit Increase Request
api/admin/spend_limits/increase_requests/approve
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/admin/spend_limits/increase_requests/approve Changed · +68 / -59 lines
# Approve Spend Limit Increase Request ## Path parameters ## Body parameters ## Returns ## Example ### Response (200) ## Approve Spend Limit Increase Request ### Path Parameters ### Body Parameters ### Returns ### Example #### Response
---- -title: Approve Spend Limit Increase Request -url: https://platform.claude.com/docs/en/api/admin/spend_limits/increase_requests/approve ---- +# Approve Spend Limit Increase Request -## Approve Spend Limit Increase Request +**POST** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve` -**post** `/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve` - Approve a pending spend limit increase request. Writes a per-user spend limit at `amount` for the requester and
the member was blocked on. Anthropic emails the requester unless `suppress_notification` is set. -### Path Parameters +## Path parameters - `spend_limit_increase_request_id: string` ID of the spend limit increase request. -### Body Parameters +## Body parameters - `amount: string`
- `suppress_notification: optional boolean` -### Returns +## Returns - `id: string` -- `actor: object { deleted, email_address, name, 2 more }` +- `actor: object` A user within the organization. `name` and `email_address` are null when the underlying account is unavailable or has been deleted;
- `deleted: boolean` + default: false + - `email_address: string or null` - `name: string or null`
- `type: "user_actor"` - - `"user_actor"` + default: user_actor - `user_id: string` - `created_at: string` + format: date-time + - `period: "daily" or "monthly" or "weekly"` - `"daily"`
- `resolved_at: string or null` -- `resolved_by: object { deleted, email_address, name, 2 more } or object { scoped_api_key_id, type } or null` + format: date-time +- `resolved_by: object or object or null` + A user within the organization. `name` and `email_address` are null when the underlying account is unavailable or has been deleted; `deleted` is true only for deleted accounts. - - `UserActor object { deleted, email_address, name, 2 more }` + - `UserActor object` A user within the organization. `name` and `email_address` are null when the underlying account is unavailable or has been deleted;
- `deleted: boolean` + default: false + - `email_address: string or null` - `name: string or null`
- `type: "user_actor"` - - `"user_actor"` + default: user_actor - `user_id: string` - - `ScopedAPIKeyActor object { scoped_api_key_id, type }` + - `ScopedAPIKeyActor object` A scoped Admin API key acting on behalf of the organization.
- `type: "scoped_api_key_actor"` - - `"scoped_api_key_actor"` + default: scoped_api_key_actor - `spend_limit: SpendLimit`
- `created_at: string` + format: date-time + - `currency: string` ISO 4217 code of the organization's billing currency; the unit for `amount`.
- `"weekly"` - - `scope: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more` + - `scope: object or object or object or 2 more` - - `User object { type, user_id }` + - `User object` - `type: "user"` - - `"user"` + default: user - `user_id: string` - - `SeatTier object { seat_tier, type }` + - `SeatTier object` - `seat_tier: string` - `type: "seat_tier"` - - `"seat_tier"` + default: seat_tier - - `RbacGroup object { rbac_group_id, type }` + - `RbacGroup object` - `rbac_group_id: string` - `type: "rbac_group"` - - `"rbac_group"` + default: rbac_group - - `OrganizationService object { service, type }` + - `OrganizationService object` - `service: string` - `type: "organization_service"` - - `"organization_service"` + default: organization_service - - `Organization object { type }` + - `Organization object` - `type: "organization"` - - `"organization"` + default: organization - `type: "spend_limit"` - - `"spend_limit"` + default: spend_limit - `updated_at: string` + format: date-time + - `spend_summary: SpendSummary or null` Per-member effective-limit report row (GET /spend_limits/effective). - - `actor: object { deleted, email_address, name, 2 more }` + - `actor: object` A user within the organization. `name` and `email_address` are null when the underlying account is unavailable or has been deleted;
- `deleted: boolean` + default: false + - `email_address: string or null` - `name: string or null`
- `type: "user_actor"` - - `"user_actor"` + default: user_actor - `user_id: string`
The member's spend so far in the current period, as a non-negative decimal string in the minor unit of `currency` (cents for USD). May carry fractional minor units up to three decimal places (e.g. `"12050.5"`) — metered usage is not rounded to whole cents. Reads as `"0"` when the spend reading is temporarily unavailable. - - `scope: object { type, user_id }` + - `scope: object` - `type: "user"` - - `"user"` + default: user - `user_id: string` - - `source: object { type, user_id } or object { seat_tier, type } or object { rbac_group_id, type } or 2 more` + - `source: object or object or object or 2 more` - - `User object { type, user_id }` + - `User object` - `type: "user"` - - `"user"` + default: user - `user_id: string` - - `SeatTier object { seat_tier, type }` + - `SeatTier object` - `seat_tier: string` - `type: "seat_tier"` - - `"seat_tier"` + default: seat_tier - - `RbacGroup object { rbac_group_id, type }` + - `RbacGroup object` - `rbac_group_id: string` - `type: "rbac_group"` - - `"rbac_group"` + default: rbac_group - - `OrganizationService object { service, type }` + - `OrganizationService object` - `service: string` - `type: "organization_service"` - - `"organization_service"` + default: organization_service - - `Organization object { type }` + - `Organization object` - `type: "organization"` - - `"organization"` + default: organization - `spend_limit_id: string`
- `type: "spend_limit_increase_request"` - - `"spend_limit_increase_request"` + default: spend_limit_increase_request -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/organizations/spend_limit_increase_requests/$SPEND_LIMIT_INCREASE_REQUEST_ID/approve \ -H 'Content-Type: application/json' \ -H 'anthropic-version: 2023-06-01' \
}' ``` -#### Response +### Response (200) ```json {