# Go back to an earlier checkpoint

`POST /hosting/coder/projects/{id}/checkpoints/{checkpoint}/restore` · Rivier · hosting

Go back to an earlier checkpoint. A new checkpoint is written with the earlier files; the history in between is kept. Code only: content and records entered since are not touched.

- Scope: hosting:write
- Sdk: hosting.coderCheckpoint.restore
- Cli: hosting coder checkpoint restore

## Parameters

- `id` (path, required), string
- `checkpoint` (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/coder/projects/{id}/checkpoints/{checkpoint}/restore' \
  -H 'Authorization: Bearer $KEY'
```
