Skip to main content
PATCH
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
name
string
Minimum string length: 1
description
string | null
scope
object

What the run plan covers: all (every active test case), folders (the cases filed in the named test suites), labels (the cases carrying any of the labels), or cases (the scenarioIds below). A dynamic scope is resolved again at every run, so a test case written later runs without editing the plan.

scenarioIds
string[]
Minimum array length: 1
targets
object[]
Minimum array length: 1
repeatCount
integer
Required range: 1 <= x <= 100
labels
string[]

Response

Suite updated

id
string
required
name
string
required
slug
string
required
kind
enum<string>
required

custom is a hand-assembled run plan; folder is a test suite that groups scenarios filed into it.

Available options:
custom,
folder
description
string | null
required
scenarioIds
string[]
required
scope
object
required

What the run plan covers: all (every active test case), folders (the cases filed in the named test suites), labels (the cases carrying any of the labels), or cases (the scenarioIds below). A dynamic scope is resolved again at every run, so a test case written later runs without editing the plan.

targets
object[]
required
repeatCount
number
required
labels
string[]
required
createdAt
string
required
updatedAt
string
required
platformUrl
string<uri>
required
Last modified on May 19, 2026