# reorderWorkflowFolders

Persist the display order for one sibling set. Pass parentFolderId (null for root) and every folderId in that set.

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

## Variables

- `parentFolderId`: `ID`
- `folderIds`: `[ID!]!` (required)

## Response (data, an example)

```json
{
  "workflowAutomationsMutation": {
    "reorderWorkflowFolders": {
      "workflowFolders": {
        "ready": true,
        "folders": [
          {
            "id": "<ID>",
            "name": "…",
            "displayOrder": 0,
            "parentFolderId": "<ID>",
            "itemCount": 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": "reorderWorkflowFolders",
    "variables": {
      "folderIds": [
        "<folderIds>"
      ]
    }
  }'
```
