Skip to main content
PATCH
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

user_id
string
required

Body

application/json
spend_limit
UpdateGridSpendLimitSettingV1 · object | null

Spend limit fields to change. Pass null to remove the user's limit; omit to leave it unchanged.

team_id
string | null

ID of the team. When omitted, the team you belong to; required when you belong to several.

Example:

"abc1234"

Response

200 - application/json
team_id
string
required

ID of the team.

Example:

"abc1234"

team_name
string
required

Name of the team.

Example:

"Engineering"

user_id
string
required

ID of the user.

Example:

"abc1234"

email
string | null
required

Email address of the user.

Example:

"dev@example.com"

spend_limit
GridSpendLimitSettingV1 · object
required

Spend limit for Baseten Grid in the team. Applies to requests with Routes keys the user created in the team; personal API keys are not limited.

month_spend_usd
string
required

The user's metered Grid spend in USD in the team this UTC calendar month, returned as an exact decimal string.

Example:

"12.5"

is_blocked
boolean
required

Whether the user's spend this month reached their limit, or the team's spend reached its team-wide limit, so requests with Routes keys they created in the team are rejected.

blocked_by
enum<string> | null
required

member when the user's spend this month reached their limit, team when the team's spend reached its team-wide limit. Null when the user is not blocked.

Available options:
member,
team