Set an app's monthly AI limit
PUT
Sets the most the app's no-key AI may spend in a UTC month, in USD the workspace pays (cap_usd, 0 to 10000; 0 or null, the default, turns it off), and optionally each signed-in member's own monthly limit (member_cap_usd; omitted = unchanged). This only sets limits and starts no paid work; raising it lets the app's AI calls spend up to the new amount, and past it they answer 402 ai_cap_reached until the month turns. A signed-in owner or admin only: an API key or a member is 403.
CustomerApiKeyheader
AuthorizationBearer <API Key>Customer API key sent as a bearer token
customer_id*stringFormat
uuidpublication_id*stringFormat
uuidapplication/json- body
cap_usd?|Range
value <= 10000member_cap_usd?|Range
value <= 10000Request fulfilled, document follows
application/json- response
cap_usd*numbermember_cap_usd?numberDefault
0used_usd*numbercurl -X PUT 'https://api.syndai.ai/api/v1/external/coding/customers/497f6eca-6276-4993-bfeb-53cbbbba6f08/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/ai-cap' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "cap_usd": 0, "member_cap_usd": 0, "used_usd": 0}