Skip to content

Set a member's limits

PUT
/members/{user_id}/limits
curl --request PUT \
--url https://api.global.stillbox.example/v1/members/example/limits \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "max_sandboxes": 1, "model_cap_usd": 1 }'

Replaces both limits; leave one out to clear it. Owners only.

user_id
required
string
Media typeapplication/json
object
max_sandboxes

How many sandboxes the person may have at once; absent or 0 for no limit of their own.

integer
model_cap_usd

Their monthly model allowance in US dollars; absent for the organization’s, 0 for none.

number format: double

Example generated

{
"max_sandboxes": 1,
"model_cap_usd": 1
}

The member with the new limits

Media typeapplication/json
object
teams

The teams the person is in.

Array<string>
limits
object
max_sandboxes

How many sandboxes the person may have at once; absent or 0 for no limit of their own.

integer
model_cap_usd

Their monthly model allowance in US dollars; absent for the organization’s, 0 for none.

number format: double
user_id
required
string
email
required
string
name
required
string
role
required

Owners invite and remove people and manage the organization; members use its sandboxes; auditors read the audit log and see everything else without changing anything, opening terminals or reading files.

string
Allowed values: owner member auditor
joined_at
required
string format: date-time
last_sign_in_at
string format: date-time

Example

{
"role": "owner"
}

The request is invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

Only an owner can do this (owner_only), or the invitation is for another address (not_invited)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}