# restoreAutomationMapVersion

Put an earlier Map version back, as the Map's Versions menu does: it is copied forward as the new current version, so nothing is lost and the step can be undone the same way. Changes the drawing only, never a workflow or AI employee.

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

## Variables

- `pageId`: `ID!` (required)
- `version`: `Int!` (required)

## Response (data, an example)

```json
{
  "automationPagesMutation": {
    "restorePageVersion": {
      "id": "<ID>",
      "currentVersion": 0,
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  }
}
```

## 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": "restoreAutomationMapVersion",
    "variables": {
      "pageId": "<pageId>",
      "version": 10
    }
  }'
```
