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.
Update an existing evaluator
Update an existing evaluator
Try this endpoint
app.langwatch.ai
API key · X-Auth-Token
Kept in this tab. Cleared when you reload.
The evaluator id.
A note kept on the version this update appends.
This sends a live request to app.langwatch.ai.
Request and response examples
import osimport requestsorigin = "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())const url = "https://app.langwatch.ai/api/v1/evaluators/<id>";const response = await fetch(url, { method: "PUT", headers: { "X-Auth-Token": process.env.LANGWATCH_API_KEY!, },});const data = await response.json();curl --request PUT \ --url 'https://app.langwatch.ai/api/v1/evaluators/<id>' \ --header "X-Auth-Token: $LANGWATCH_API_KEY"Call the LangWatch API from this project.Request: PUT https://app.langwatch.ai/api/v1/evaluators/<id>Reference: https://langwatch.ai/docs/api-reference/evaluators-config/update-evaluators.mdAuthentication: send the X-Auth-Token header, read from the LANGWATCH_API_KEY environment variable. Never hard-code the key.Use the HTTP client this project already uses, handle non-2xx responses, and show me the parsed result.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"}Bad Request
application/json · Generated from schema
{ "error": "string", "message": "string"}Not Found
application/json · Generated from schema
{ "error": "string", "message": "string"}Path parameters
idstringrequiredThe evaluator id.
Request body
application/json
namestringconfigobjectcommitMessagestringA note kept on the version this update appends.
Responses
200Success
application/json
idstringrequiredprojectIdstringrequirednamestringrequiredslugstring | nullrequiredtypestringrequiredconfigobject | nullrequiredworkflowIdstring | nullrequiredcopiedFromEvaluatorIdstring | nullrequiredcreatedAtstring (date-time)requiredupdatedAtstring (date-time)requiredfieldsobject[]requiredoutputFieldsobject[]requiredworkflowNamestringworkflowIconstringversioninteger | nullrequiredThe version this response shows: the latest, unless a label or a version was asked for.
labelsobject[]requiredThe deploy labels the evaluator carries, such as production, and the version each points at.
createdByobject | nullrequiredThe user who created the evaluator. Null when an API key created it, or it predates creators being recorded.
updatedByobject | nullrequiredThe user who changed the evaluator last. Null when an API key changed it.
platformUrlstring (uri)required400Bad Request
application/json
errorstringrequiredmessagestring404Not Found
application/json
errorstringrequiredmessagestring