# Update team

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).

`PATCH /v1/teams/{team_id}`

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).

Requires permission `members:manage`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `team_id` | path | yes | Team id (team_...). |

## Request body

```json
{
  "name": "Example",
  "approver_user_id": "app_01jd2x3k4m5n6p7q8r9s0t1v2w"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.
- **404**: The resource does not exist or belongs to another organization.
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

Example 200 response:

```json
{
  "team": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "name": "Example",
    "members": 1,
    "agents": 1,
    "budget": {
      "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "limit": "string",
      "committed": "string",
      "reserved": "50000",
      "available": "50000",
      "asset": "USDC"
    },
    "created_at": "2026-11-16T12:00:00Z",
    "approver": {
      "member_id": "mem_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "user_id": "usr_01jd2x3k4m5n6p7q8r9s0t1v2w",
      "name": "Example",
      "email": "owner@example.com"
    }
  }
}
```
