# resumeWorkflowVersion

Resume a specific PAUSED version (by workflowAutomationId), pausing the active sibling first. Promotion is ONE-WAY, so this is NOT a roll-back: it REJECTS a version that is not PAUSED, and it REJECTS a SUPERSEDED version (one with a later-published sibling) with "Only the most recently published version can be resumed." So it can only activate the most recently PUBLISHED paused version. Do not treat resumeWorkflow as an equivalent fallback: it picks the most recently PAUSED version (a different ordering: a version paused later may have been published earlier) and NO-OPS when an active sibling exists, where this op pauses that sibling first. To bring an OLDER version back, use restoreWorkflowVersionAsDraft, never a retry of this op.

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

## Variables

- `workflowAutomationId`: `ID!` (required)

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "resumeWorkflowVersion": {
      "id": "<ID>",
      "workflowGroupId": "<ID>",
      "name": "…",
      "status": "DRAFT"
    }
  }
}
```

## 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": "resumeWorkflowVersion",
    "variables": {
      "workflowAutomationId": "<workflowAutomationId>"
    }
  }'
```
