Skip to contentSkip to page list

Docs

Update an existing evaluator

Update an existing evaluator

PUT/api/v1/evaluators/{id}
Request and response examples
request.py
import osimport requests​origin = "https://app.langwatch.ai"path = "/api/v1/evaluators/<id>"api_key = os.environ["LANGWATCH_API_KEY"]headers = {    "X-Auth-Token": api_key,}​response = requests.put(    origin + path,    headers=headers,)print(response.json())

Success

application/json · Generated from schema

{  "id": "string",  "projectId": "string",  "name": "string",  "slug": "string",  "type": "string",  "config": {},  "workflowId": "string",  "copiedFromEvaluatorId": "string",  "createdAt": "2026-01-01T00:00:00Z",  "updatedAt": "2026-01-01T00:00:00Z",  "fields": [    {      "identifier": "string",      "type": "string",      "optional": false    }  ],  "outputFields": [    {      "identifier": "string",      "type": "string",      "optional": false    }  ],  "workflowName": "string",  "workflowIcon": "string",  "version": 0,  "labels": [    {      "label": "string",      "version": 0    }  ],  "createdBy": {    "id": "string",    "name": "string"  },  "updatedBy": {    "id": "string",    "name": "string"  },  "platformUrl": "string"}
api-reference/evaluators-config/update-evaluators

Authorization

X-Auth-Tokenstringheaderrequired

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

idstringrequired

The evaluator id.

At least 1 character

Request body

application/json

namestring
At least 1 characterUp to 255 characters
configobject
commitMessagestring

A note kept on the version this update appends.

Up to 500 characters

Responses

200

Success

application/json

idstringrequired
projectIdstringrequired
namestringrequired
slugstring | nullrequired
typestringrequired
configobject | nullrequired
Option 1object
Option 2null
workflowIdstring | nullrequired
copiedFromEvaluatorIdstring | nullrequired
createdAtstring (date-time)required
updatedAtstring (date-time)required
fieldsobject[]required
identifierstringrequired
typestringrequired
optionalboolean
outputFieldsobject[]required
identifierstringrequired
typestringrequired
optionalboolean
workflowNamestring
workflowIconstring
versioninteger | nullrequired

The version this response shows: the latest, unless a label or a version was asked for.

Option 1integer
Option 2null
labelsobject[]required

The deploy labels the evaluator carries, such as production, and the version each points at.

labelstringrequired
versionintegerrequired
Maximum 9007199254740991
createdByobject | nullrequired

The user who created the evaluator. Null when an API key created it, or it predates creators being recorded.

Option 1object
idstringrequired
namestring | nullrequired
Option 2null
updatedByobject | nullrequired

The user who changed the evaluator last. Null when an API key changed it.

Option 1object
idstringrequired
namestring | nullrequired
Option 2null
platformUrlstring (uri)required
400

Bad Request

application/json

errorstringrequired
messagestring
404

Not Found

application/json

errorstringrequired
messagestring

Documentation