Skip to main content
PUT
Set the spending limit

Authorizations

Authorization
string
header
required

Get your API key at context7.com/dashboard. Treat your API key like a password and store it securely. Every key can read the management API (/v2/teamspaces/*), except personal data: member and invitation emails, library requesters, visitor questions, Docs7 reader searches, conversations, feedback and feature requests, and the GitHub account behind a build. To read those or make changes there, the key must be created with Write access ticked; other keys get 403 write_access_required.

Path Parameters

teamspaceId
string<uuid>
required

Teamspace id (from GET /v2/teamspaces).

Body

application/json
limitCents
integer | null
required

Cents; null removes the limit.

Required range: 0 <= x <= 10000000

Response

Spending limit saved

limitCents
integer | null

Monthly cap on billed API usage in cents; null is no cap.

currentSpendCents
integer

Billed API usage this month, in cents.

canEdit
boolean

GET only. The caller is an owner or admin.

alreadyOver
boolean

PUT only. This month's spend already reaches the new limit.