# setDealDetailHiddenFields

Hide fields from one pipeline's deal sheet and create/edit form, for everyone: `hiddenFieldKeys` REPLACES the hidden set (getDealPipelineLayout first; an empty list shows everything). Keys are `native:team|closeDate|dealValue|commission` or `custom:<fieldId>`; Stage is never hidden and an unknown key is dropped. Hiding keeps every value.

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

## Variables

- `pipelineId`: `ID!` (required)
- `hiddenFieldKeys`: `[String!]!` (required)

## Response (data, an example)

```json
{
  "dealCustomFieldMutation": {
    "updateDealDetailFieldVisibility": {
      "id": "<ID>",
      "hiddenDetailFieldKeys": [
        "…"
      ]
    }
  }
}
```

## 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": "setDealDetailHiddenFields",
    "variables": {
      "pipelineId": "<pipelineId>",
      "hiddenFieldKeys": [
        "<String>"
      ]
    }
  }'
```
