# requestWebsiteChange

Ask Goliath to change one website, in the person's own words (new text, a new photo, a section moved). Org admins only. It runs in the background, about 5 minutes, one change per website at a time, and reports into the Ask Goliath chat that asked with a preview to review; nothing goes live until it is published. `photoArtifactIds`: images on that chat (PNG, JPEG, GIF or WebP), at most 10. Refused NO_CHAT outside a chat, CHANGE_OPEN while a change waits (publish or discard it first), STILL_WORKING while one is being made.

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

## Variables

- `websiteId`: `String!` (required)
- `instruction`: `String!` (required)
- `photoArtifactIds`: `[ID!]`

## Response (data, an example)

```json
{
  "customerWebsiteMutation": {
    "requestChange": {
      "ok": true,
      "status": "QUEUED",
      "error": "…"
    }
  }
}
```

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