# updateTeammatePersonalGoalStatus

A teammate's plan (`userId`, ADMIN; the key owner must be an org admin who sees the team directory): updatePersonalGoalStatus for them; ids from getTeammateGoalPlan.

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

## Variables

- `userId`: `ID!` (required)
- `goalId`: `ID!` (required)
- `status`: `AgentPersonalGoalStatus!` (required, one of `ACTIVE`, `COMPLETED`, `ARCHIVED`)

## Response (data, an example)

```json
{
  "agentGoalsMutation": {
    "updateAgentPersonalGoalStatus": {
      "id": "<ID>",
      "goalPlanId": "<ID>",
      "title": "…",
      "status": "ACTIVE"
    }
  }
}
```

## 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": "updateTeammatePersonalGoalStatus",
    "variables": {
      "userId": "<userId>",
      "goalId": "<goalId>",
      "status": "ACTIVE"
    }
  }'
```
