# renameWorkflow

Rename a workflow version (by workflowAutomationId) and optionally update its description. The workflow list shows the display version's name.

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

## Variables

- `workflowAutomationId`: `ID!` (required)
- `name`: `String!` (required)
- `description`: `String`

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "updateWorkflowAutomationName": {
      "id": "<ID>",
      "name": "…",
      "description": "…",
      "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": "renameWorkflow",
    "variables": {
      "workflowAutomationId": "<workflowAutomationId>",
      "name": "<String>"
    }
  }'
```
