Skip to main content
PUT
Python

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

id
string
required

Body

application/json
commitMessage
string
required
model
string
temperature
number
maxTokens
number
authorId
string
prompt
string
messages
object[]
inputs
object[]
outputs
object[]
schemaVersion
enum<string>
Available options:
1.0
tags
string[]
Minimum string length: 1
parameters
object
scope
enum<string>
Available options:
ORGANIZATION,
PROJECT
handle
string
Pattern: ^[a-z0-9_-]+(?:\/[a-z0-9_-]+)?$

Response

Success

id
string
required
handle
string | null
required
scope
enum<string>
required
Available options:
ORGANIZATION,
PROJECT
name
string
required
updatedAt
string
required
projectId
string
required
organizationId
string
required
versionId
string
required
version
number
required
createdAt
string
required
prompt
string
required
messages
object[]
required
inputs
object[]
required
outputs
object[]
required
Minimum array length: 1
model
string
required
Minimum string length: 1
tags
object[]
required
parameters
object
required
authorId
string | null
commitMessage
string | null
temperature
number
maxTokens
number
demonstrations
object
promptingTechnique
object
responseFormat
object