Skip to main content
POST
Restore an experiment version

Authorizations

X-Auth-Token
string
header
required

Project API key for sending traces and accessing project-scoped resources. Format: sk-lw-... (no underscore). Obtain one by creating a project via the Admin API or the LangWatch UI.

Path Parameters

slug
string
required
Minimum string length: 1
version
integer
required

The version to restore, as listed by GET /api/experiments/{slug}/versions

Required range: 0 <= x <= 9007199254740991

Response

Success

version
number
required

The new version the restore wrote. History is never rewritten, so the restored version is still in the list.

Last modified on October 12, 2026