# previewComplianceSiteEdit

Preview a compliance-site edit (org admins): only the facts that change (tagline, contactEmail, contactPhone, contactName, contactTitle, markets; null clears). Refused when it would move the business name, legal entity or opt-in wording; else what the site would show and the previewId to republish. Nothing is published.

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

## Variables

- `edit`: `ComplianceSiteEditInput!` (required). An edit of a compliance site. Give only what changes; null clears a saved value. `businessName` is accepted only to be refused: the name is the brand registration's.
  - `businessName`: `String`
  - `tagline`: `String`
  - `contactEmail`: `String`
  - `contactPhone`: `String`
  - `contactName`: `String`
  - `contactTitle`: `String`
  - `markets`: `[String!]`

## Response (data, an example)

```json
{
  "complianceSiteMutation": {
    "previewEdit": {
      "ok": true,
      "refusals": [
        "…"
      ],
      "previewId": "…",
      "liveUrl": "…",
      "rolledBack": true,
      "ignored": [
        "…"
      ],
      "facts": {
        "businessName": "…",
        "legalEntityName": "…",
        "tagline": "…",
        "contactEmail": "…",
        "contactPhone": "…",
        "contactName": "…",
        "contactTitle": "…",
        "markets": [
          "…"
        ],
        "seed": "…"
      }
    }
  }
}
```

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