# undoCatchUpDecision

Take back a decideCatchUpCard: the same cardId and verb, `suggestionIds` the rows it decided (its ticked rows less `remainingIds`), and for an ACCEPT `setAsideIds` its unticked `shownIds` (only rows it set aside come back). Dismissals and set-asides come back; an applied row (a merge, a spend, a send) stands and is counted in `refused`. Card decisions only: trust and memory moves are the person's, in the app.

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

## Variables

- `cardId`: `ID!` (required)
- `verb`: `WorkThroughVerb!` (required, one of `ACCEPT`, `DISMISS`)
- `suggestionIds`: `[ID!]!` (required)
- `setAsideIds`: `[ID!]`

## Response (data, an example)

```json
{
  "workThroughMutation": {
    "undoDecision": {
      "undone": 0,
      "refused": 0,
      "refusalMessage": "…"
    }
  }
}
```

## 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": "undoCatchUpDecision",
    "variables": {
      "cardId": "<cardId>",
      "verb": "ACCEPT",
      "suggestionIds": [
        "<suggestionIds>"
      ]
    }
  }'
```
