# discardWebsiteChange

Throw a website's open change away for good. Org admins only, on the person's yes. Bound to the preview it names (previewId from getWebsiteChange): a newer one refuses STALE_PREVIEW.

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

## Variables

- `websiteId`: `String!` (required)
- `previewId`: `String!` (required)

## Response (data, an example)

```json
{
  "customerWebsiteMutation": {
    "discard": {
      "ok": true,
      "published": true,
      "refused": "OFF",
      "details": [
        "…"
      ]
    }
  }
}
```

## 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": "discardWebsiteChange",
    "variables": {
      "websiteId": "<String>",
      "previewId": "<String>"
    }
  }'
```
