Skip to main content
PUT
/
api
/
v0
/
organization
/
usage
/
limits
/
global
Set global user token limit
curl --request PUT \
  --url https://api.factory.ai/api/v0/organization/usage/limits/global \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "limit": 1000001
}
'
{
  "limit": 1
}

Authorizations

Authorization
string
header
required

Factory API key or JWT token for authentication

Body

application/json
limit
integer | null
required

Global per-user token limit (minimum 1,000,000). Pass null to remove the global limit.

Required range: x >= 1000000

Response

Response for status 200

limit
integer | null
required

The limit that was set, or null if it was removed

Required range: x >= 0