# Approve or send back an AI's proposed change to a published page

`POST /hosting/sites/{id}/pages/{page}/changes/{change}/decision` · Rivier · hosting

Approve or send back an AI's proposed change to a published page.

- Scope: hosting:write
- Graphql: Mutation.hostingSitePageDecide
- Sdk: hosting.sitePage.decide
- Cli: hosting site page decide

## Parameters

- `id` (path, required), string
- `page` (path, required), string
- `change` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "decision": {
      "type": "string",
      "enum": [
        "approve",
        "changes"
      ]
    },
    "comment": {
      "type": "string",
      "maxLength": 500
    },
    "resolve": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "ours",
          "theirs"
        ]
      }
    }
  },
  "required": [
    "decision"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/hosting/sites/{id}/pages/{page}/changes/{change}/decision' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "decision": "approve"
}'
```
