# updatePipeline

Update a deal pipeline's title and/or description (by pipelineId from listPipelines). Owner-only: the pipeline must be OWNED by your organization: a pipeline merely shared with you cannot be edited.

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

## Variables

- `pipelineId`: `ID!` (required)
- `title`: `String`
- `description`: `String`

## Response (data, an example)

```json
{
  "dealMutation": {
    "updateDealPipeline": {
      "id": "<ID>",
      "name": "…",
      "description": "…",
      "dealsCount": 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": "updatePipeline",
    "variables": {
      "pipelineId": "<pipelineId>"
    }
  }'
```
