# Switch the site to the restored data. What it had before is kept briefly

`POST /hosting/sites/{id}/data/restore/{rid}/confirm` · Rivier · hosting

Switch the site to the restored data. What it had before is kept briefly.

- Scope: hosting:write
- Mcp: rivier_hosting_restore_confirm
- Graphql: Mutation.hostingDataRestoreConfirm
- Sdk: hosting.data.restoreConfirm
- Cli: hosting data restore confirm
- Events: hosting.data.restored

## Parameters

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

## 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}/data/restore/{rid}/confirm' \
  -H 'Authorization: Bearer $KEY'
```
