Skip to content

Update a User's quota

PATCH
/api/v1/auth/users/{id}/quota
curl --request PATCH \
--url https://example.com/api/v1/auth/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/quota \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "quota_override_bytes": 1 }'

Updates a User’s quota. It requires a signed-in User with the admin scope and the admin or owner Role. It also requires a recent passkey check. It can return 400 if the request is invalid, 401 if the session is missing or expired, 403 if access is denied and 429 if the request limit is reached. Route: /api/v1/auth/users/{id}/quota. Inputs: id. A recent account assertion is required. Do not automatically replay this operation after an uncertain result.

id
required
string format: uuid

User id

Media typeapplication/json
object
quota_override_bytes

null inherits the Instance default; zero means unlimited.

integer | null format: int64
Examplegenerated
{
"quota_override_bytes": 1
}
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}
Media typeapplication/json
object
code
required
string
message
required
string
Examplegenerated
{
"code": "example",
"message": "example"
}