# updateTeam

Edit a team (teamId from listTeams); omitted fields are untouched. memberUserIds (active teammates, listTeamMembers) REPLACES the whole member list. Organization admins only.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "updateTeam", "variables": {...} }`
- Scope: `ADMIN`
- Type: mutation
- Idempotency: honors `Idempotency-Key` (24 h)
- Rate-limited: no

## Variables

- `teamId`: `ID!` (required)
- `name`: `String`
- `description`: `String`
- `emoji`: `String`
- `color`: `String`
- `memberUserIds`: `[ID!]`

## Response (data, an example)

```json
{
  "userGroupMutation": {
    "update": {
      "id": "<ID>",
      "name": "…",
      "description": "…",
      "memberCount": 0
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "operationId": "updateTeam",
    "variables": {
      "teamId": "<teamId>"
    }
  }'
```
