Skip to main content
Requires Pro or Team plan.

Request

POST /api/configs/:id/rollback
Rolls back a config to a previous version. This creates a new version with the target version’s data (similar to git revert).

Path parameters

ParameterTypeDescription
idstringConfig UUID

Body

{
  "versionId": "version-uuid-to-rollback-to"
}
FieldTypeRequiredDescription
versionIdstringYesUUID of the version to rollback to

Example

curl -X POST https://lazyraccoon.dev/api/configs/config-uuid/rollback \
  -H "Authorization: Bearer lr_your_key" \
  -H "Content-Type: application/json" \
  -d '{"versionId": "version-uuid"}'

Response

{
  "id": "new-version-uuid",
  "version": 4,
  "hash": "def456...",
  "createdAt": "2026-03-13T12:00:00.000Z",
  "isCurrent": true
}

Authorization

  • Personal configs: only the owner can rollback
  • Team configs: requires owner or admin role