# getWebsiteChange

One website (`websiteId` from listWebsites) and its open change, to follow a requested change: `working` while Goliath queues or makes it, then `openChange` with its preview. Null when it is not one of the organization's.

- Call: `POST https://server.goliathdata.com/api/v1/call` with `{ "operationId": "getWebsiteChange", "variables": {...} }`
- Scope: `READ`
- Type: query
- Idempotency: a read; rejects `Idempotency-Key`
- Rate-limited: no

## Variables

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

## Response (data, an example)

```json
{
  "customerWebsiteQuery": {
    "website": {
      "id": "…",
      "name": "…",
      "primaryDomain": "…",
      "liveUrl": "…",
      "working": true,
      "openChangeUnreadable": true,
      "openChange": {
        "previewId": "…",
        "preview": "BUILDING",
        "previewUrl": "…",
        "working": true,
        "sentForPublishing": true,
        "request": "…",
        "agentNote": "…"
      }
    }
  }
}
```

## Example

```bash
curl https://server.goliathdata.com/api/v1/call \
  -H "Authorization: Bearer $GOLIATH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "operationId": "getWebsiteChange",
    "variables": {
      "websiteId": "<String>"
    }
  }'
```
