# controlContactsWorkflowRuns

PAUSE or RESUME the workflow runs of contacts (optional workflowGroupIds narrows it). RESUME restarts only runs someone paused by hand on a workflow version still active; other runs are skipped. A bulk task (`bulkTaskId`, getBulkTask). The person approves it on a card.

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

## Variables

- `contactIds`: `[String!]!` (required)
- `operation`: `WorkflowRunBulkOperation!` (required, one of `PAUSE`, `RESUME`)
- `workflowGroupIds`: `[ID!]!` (default `[]`)

## Response (data, an example)

```json
{
  "contactMutation": {
    "createBulkControlWorkflowRunsTask": {
      "bulkTaskId": "…"
    }
  }
}
```

## 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": "controlContactsWorkflowRuns",
    "variables": {
      "contactIds": [
        "<String>"
      ],
      "operation": "PAUSE"
    }
  }'
```
