# getDealPipelineLayout

One pipeline's field layout: each custom field with its display order, showOnCard and cardDisplayOrder (the up-to-5 fields the board card shows), and hiddenDetailFieldKeys (what the deal sheet and create/edit form hide: `native:team|closeDate|dealValue|commission` or `custom:<fieldId>`; null or empty = all shown). Read it before setDealCardFields or setDealDetailHiddenFields, which replace the whole list.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getDealPipelineLayout", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

- `pipelineId`: `ID!` (required)

## Response (data, an example)

```json
{
  "dealQuery": {
    "getDealPipeline": {
      "id": "<ID>",
      "name": "…",
      "canEditPipeline": true,
      "hiddenDetailFieldKeys": [
        "…"
      ],
      "customFields": [
        {
          "id": "<ID>",
          "name": "…",
          "type": "DROPDOWN",
          "displayOrder": 0,
          "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" \
  -d '{
    "operationId": "getDealPipelineLayout",
    "variables": {
      "pipelineId": "<pipelineId>"
    }
  }'
```
