# clearContactDoNotContact

Take one contact off Do Not Contact, as the contact page's toggle does, so texts, calls, emails and workflows reach them again. Only when the contact asked to be contacted again. A value-level opt-out on one of their numbers or addresses stays until clearChannelSuppression lifts it. Returns the contact's id and doNotContact.

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

## Variables

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

## Response (data, an example)

```json
{
  "contactMutation": {
    "clearContactDoNotContact": {
      "id": "<ID>",
      "doNotContact": true
    }
  }
}
```

## 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": "clearContactDoNotContact",
    "variables": {
      "contactId": "<contactId>"
    }
  }'
```
