# reorderDealCustomFields

Set the display order of one pipeline's custom fields: pass every field id of that pipeline (listDealCustomFields), first = top. An id from another pipeline is refused. Presentation only: no value, filter or workflow changes.

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

## Variables

- `pipelineId`: `ID!` (required)
- `customFieldIds`: `[ID!]!` (required)

## Response (data, an example)

```json
{
  "dealCustomFieldMutation": {
    "reorderCustomFields": {
      "getPipelineCustomFields": [
        {
          "id": "<ID>",
          "name": "…",
          "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": "reorderDealCustomFields",
    "variables": {
      "pipelineId": "<pipelineId>",
      "customFieldIds": [
        "<customFieldIds>"
      ]
    }
  }'
```
