Skip to main content
put/v2/teamspaces/{teamspaceId}/spending-limit
Request example
Response
put/v2/teamspaces/{teamspaceId}/spending-limit

Authorization

Authorizationstringheaderrequired#
Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely.

Path parameters

teamspaceIdstringrequired#
Teamspace id (from GET /v2/teamspaces).

Body

application/json
limitCentsintegerrequired#
Cents; null removes the limit.

Range: 0–10000000

Responses

application/json
Spending limit saved
limitCentsinteger#
Monthly cap on billed API usage in cents; null is no cap.
currentSpendCentsinteger#
Billed API usage this month, in cents.
canEditboolean#
GET only. The caller is an owner or admin.
alreadyOverboolean#
PUT only. This month's spend already reaches the new limit.