Organizations and members
PATCH/v1/teams/{team_id}
Update team
curl -X PATCH "https://api.52-28-238-205.sslip.io/v1/teams/{team_id}" \ -H "Cookie: <console session cookie>" \ -H "Content-Type: application/json" \ -d '{"name":"Example","approver_user_id":"app_01jd2x3k4m5n6p7q8r9s0t1v2w"}'Renames a team or assigns a member with the Approver role as its approver. Console session or API key with members:manage; names are unique per organization (409).
Server URL
https://api.52-28-238-205.sslip.ioPATCH/v1/teams/{team_id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
sessionCookie: <console session cookie>apiKeyAuthorization: Bearer sk_test_...
Path
team_idstringrequiredTeam id (team_...).
Body
application/json · required. Fields are listed under Request body below.
Requires permissionmembers:manage
Held by
owner, admin, operator, merchant_owner. The caller must hold this permission, or the call is refused with 403.cookie
uapg_session<token>Console session cookie (HttpOnly, SameSite=Lax)
team_id*Team IdTeam id (team_...).
application/json- body
name?string|nullapprover_user_id?string|nullSuccess.
application/json- response
team*[key: string]?anyPOSTCreate team
Creates a team with an optional budget and approver. Console session or API key with members:manage; names are unique per organization (409) and the budget must fit under the organization budget.
DELDelete team
Deletes an empty team and its unused budget. Console session or API key with members:manage; a team with members, agents or recorded spend can't be deleted (409).