> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Roll back to a version

> Body: { version }.

Body: `&#123; version &#125;`.

### Path parameters

**id** `string` *required*

Site id

### Response

`object`

**version** `integer` *required*

**config** `object` *required*

The site's widget settings — free-form, whatever the editor saved

**publishedAt** `string (date-time)`

`null` until published

### Status codes

| Code | Meaning |
| - | - |
| `200` | The restored config |
| `400` | Error |
| `401` | Error |
| `404` | Error |

```bash cURL theme={null}
curl --request POST \
  --url 'https://api.example.com/api/admin/sites/{id}/config/rollback' \
  --header 'Authorization: Bearer YOUR_API_KEY'
```

```json 200 theme={null}
{
  "version": 1,
  "config": {},
  "publishedAt": "2026-08-31T14:22:05Z"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.