Skip to main content
PATCH
JavaScript

Authorizations

Authorization
string
header
required

Telnyx API key

Path Parameters

instance_id
string<uuid>
required

The Agent Gateway's id.

team_id
string<uuid>
required

The team's id.

Body

application/json

A field left out stays as it is; null clears it.

name
string

A label for people.

Required string length: 1 - 100
models
string[]

The models the team's keys may use. [] allows every model.

Maximum array length: 100
Required string length: 1 - 200
max_budget
number | null

The most the team's keys may spend together, in USD.

Required range: x >= 0
budget_resets_every
string | null

How often the spend resets.

Pattern: ^[1-9][0-9]{0,6}[smhd]$
Example:

"30d"

blocked
boolean

true makes the instance refuse every key in the team; false lets them through again.

requests_per_minute
integer | null

The most requests the team's keys may make per minute, together.

Required range: 1 <= x <= 2147483647
tokens_per_minute
integer | null

The most tokens the team's keys may use per minute, together.

Required range: 1 <= x <= 2147483647

Response

The updated team

data
object
required

A team on an instance: a model list, a budget, and rate limits that its keys share.