# Undo one change, or the caller's newest, as a new version

`POST /hosting/sites/{id}/pages/{page}/undo` · Rivier · hosting

Undo one change, or the caller's newest, as a new version.

- Scope: hosting:write
- Mcp: rivier_site_page_undo
- Graphql: Mutation.hostingSitePageUndo
- Sdk: hosting.sitePage.undo
- Cli: hosting site page undo

## Parameters

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

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "patchId": {
      "type": "string",
      "format": "uuid"
    },
    "resolve": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "enum": [
          "ours",
          "theirs"
        ]
      }
    }
  },
  "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}/undo' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "patchId": "string",
  "resolve": {}
}'
```
