# updateWorkflowPriority

Set a workflow's priority, which orders its runs and sends against the org's other workflows (higher wins): 1.25 Low, 1.5 Normal (the default), 1.75 High; any other value is refused. Takes a version id (getWorkflow currentVersion.id); applies to the whole workflow at once, live included, and re-orders sends already queued.

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

## Variables

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

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "updateWorkflowAutomationPriority": {
      "id": "<ID>",
      "workflowGroup": {
        "id": "<ID>",
        "priority": 0
      }
    }
  }
}
```

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