# addDealComment

Append a comment to a deal's activity feed, attributed to the API key's owner. Requires a non-empty body (max 10,000 chars). The deal must be in a pipeline owned by or shared with your organization. Returns the created COMMENT event; read the thread back with listDealComments.

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

## Variables

- `dealId`: `ID!` (required)
- `body`: `String!` (required)

## Response (data, an example)

```json
{
  "dealMutation": {
    "addDealComment": {
      "id": "<ID>",
      "eventType": "STAGE_CHANGED",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "actor": {
        "userId": "<ID>",
        "name": "…"
      },
      "payload": "…"
    }
  }
}
```

## 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": "addDealComment",
    "variables": {
      "dealId": "<dealId>",
      "body": "<String>"
    }
  }'
```
