Skip to main content
PUT
Error

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Path Parameters

id
string
required

Team ID

Body

application/json
name
string

Team name. Renaming is not allowed - sending a value different from the team's current name returns 400.

customer_id
string

Customer to attach to this team. Additive: the customer is attached and any customers already attached are left in place. Re-sending an already-attached customer is a no-op. To detach, use DELETE /api/teams/{id}/customers/{customerId}. This is the team <-> customer many-to-many association that drives governance and DAC customer derivation. It is distinct from the customer_id on PUT /api/governance/teams/{team_id}, which sets the team's budget-hierarchy parent and is not modified by this endpoint.

customer_ids
string[]

Customers to attach to this team, same semantics as customer_id. May be combined with customer_id; the two sets are merged.

Response

Team updated successfully

id
string
name
string
attached_customer_ids
string[]

Customers attached by this request. Omitted when the request carried no customer_id or customer_ids.

warning
string

Present only when the attachment was persisted but refreshing the cached team scope failed. The association is durable; the derived customer scope may lag until the next reload.