# setDealCardFields

Choose the fields every deal card on one pipeline's board shows: at most 5 field ids of that pipeline, built-ins included, in order. REPLACES the set (empty shows none), for everyone. Org admins only. Returns the fields with showOnCard and cardDisplayOrder.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "setDealCardFields", "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": {
    "updateCardDisplayFields": [
      {
        "id": "<ID>",
        "name": "…",
        "showOnCard": true,
        "cardDisplayOrder": 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": "setDealCardFields",
    "variables": {
      "pipelineId": "<pipelineId>",
      "customFieldIds": [
        "<customFieldIds>"
      ]
    }
  }'
```
