Skip to main content
PUT
/
api
/
v0
/
organization
/
usage
/
limits
/
users
Set user token limits
curl --request PUT \
  --url https://api.factory.ai/api/v0/organization/usage/limits/users \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "users": [
    {
      "email": "jsmith@example.com",
      "limit": 1000001
    }
  ]
}
'
{
  "updated": [
    {
      "email": "jsmith@example.com",
      "limit": 1
    }
  ],
  "errors": [
    {
      "email": "<string>",
      "error": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Factory API key or JWT token for authentication

Body

application/json
users
object[]
required

Array of user limit entries (up to 100). Each identifies a user by email.

Required array length: 1 - 100 elements

Response

Response for status 200

updated
object[]
required

Successfully updated user limits

errors
object[]
required

Errors for users that could not be updated