Teamspace Admin

Set the spending limit

Changed on

Caps billed API usage per month; requests over the cap are refused. Owners and admins only.

put/v2/teamspaces/{teamspaceId}/spending-limit

Request

  • Base URL
    https://context7.com/api
  • URL
    https://context7.com/api/v2/teamspaces/{teamspaceId}/spending-limit
  • Auth
    HTTP bearer

Request body

limitCentsinteger nullable required

Cents; null removes the limit.

Response

Spending limit saved

limitCentsinteger nullable

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.

Changes