# reorderAfterCallActions

Order the after-call actions the dialer offers: items list every kind once with its displayOrder. Admins only.

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

## Variables

- `items`: `[ReorderAfterCallActionItemInput!]!` (required)
  - `kind`: `AfterCallActionKind!` (required, one of `CREATE_TASK`, `BOOK_APPOINTMENT`, `CREATE_PIPELINE_ITEM`, `CREATE_DEAL`, `UPDATE_CUSTOM_FIELDS`, `ADD_TO_SEQUENCE`)
  - `displayOrder`: `Int!` (required)

## Response (data, an example)

```json
{
  "callsMutation": {
    "reorderAfterCallActions": {
      "actions": [
        {
          "kind": "CREATE_TASK",
          "isEnabled": true,
          "displayOrder": 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": "reorderAfterCallActions",
    "variables": {
      "items": [
        {
          "kind": "CREATE_TASK",
          "displayOrder": 10
        }
      ]
    }
  }'
```
