# republishComplianceSite

Put a previewed compliance-site edit live (org admins): the same edit and its previewId. Verified against the carrier checklist on the live pages, or put back as it was (rolledBack) with the reasons.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "republishComplianceSite", "variables": {...} }`
- Scope: `ADMIN`
- 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!]`
- `previewId`: `String!` (required)

## Response (data, an example)

```json
{
  "complianceSiteMutation": {
    "republish": {
      "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": "republishComplianceSite",
    "variables": {
      "edit": {},
      "previewId": "<String>"
    }
  }'
```
