Skip to main content
PUT
Save an experiment's setup

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

Body

application/json
state
object
required

The full setup to save

expectedVersion
integer

The version you read. Sending it refuses the save when someone else already wrote on top of it.

commitMessage
string

Names this version in the history list

Response

Setup saved

version
integer
required

The version the save produced

Last modified on August 24, 2026