# updatePersonalGoalStatus

Mark a personal goal ACTIVE, COMPLETED or ARCHIVED, on a draft or active plan (not an archived one). goalPlanId/goalId from getGoalPlan. Your own plan; a teammate’s is the *Teammate* op (ADMIN).

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

## Variables

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