Update task
Update a task's mutable fields. At least one field must be provided. Omitted fields are left unchanged.
Payload Requirements
- At least one mutable field must be provided.
- When evaluators is provided, the entire evaluator list is replaced.
- sampling_rate and is_continuous are only applicable for project-based tasks.
- Fields not valid for the task's type return 400 (e.g. run_configuration on an evaluation task).
- System-managed fields (id, type, created_at, updated_at) cannot be modified.
- evaluator_version_id pins an evaluator to one version. Because evaluators replaces the whole list, each entry states its own pin: send a version ID to pin, and omit the field or send null to run the latest version. Omit evaluators entirely to leave the existing attachments — and their pins — untouched.
- A pinned version must belong to the evaluator named by evaluator_id, and every evaluator on the task must resolve to the same data scope. Both return 422.
Valid example (update evaluation task)
{
"name": "Updated Hallucination Check",
"sampling_rate": 0.5,
"query_filter": "metadata.environment = 'staging'"
}
Valid example (pin one evaluator, leave the other on latest)
{
"evaluators": [
{
"evaluator_id": "RXZhbHVhdG9yOjEyOmFCY0Q=",
"evaluator_version_id": "RXZhbHVhdG9yVmVyc2lvbjo5OTphQmNE"
},
{
"evaluator_id": "RXZhbHVhdG9yOjEzOmFCY0Q="
}
]
}
Invalid example (no fields provided)
{}
<Note>This endpoint is in beta, read more here.</Note>
Path parameters
A universally unique identifier (base64-encoded opaque string).
The unique task identifier (base64)
Request body
Response
Returns a single task object
Changes
Changed in 3 of the 16 revisions of this API.2410
- ▲
the
anyOf[UpdateEvaluationTaskRequest]/evaluators/items/request property type/format changed fromobject/to/request-property-type-changed
- ●
removed the request property
anyOf[UpdateEvaluationTaskRequest]/evaluators/items/column_mappingsrequest-property-removed
- ●
removed the request property
anyOf[UpdateEvaluationTaskRequest]/evaluators/items/evaluator_idrequest-property-removed
- ●
removed the request property
anyOf[UpdateEvaluationTaskRequest]/evaluators/items/evaluator_version_idrequest-property-removed
- ●
removed the request property
anyOf[UpdateEvaluationTaskRequest]/evaluators/items/query_filterrequest-property-removed
- ○
added the new optional request property
anyOf[UpdateEvaluationTaskRequest]/query_filtersnew-optional-request-property
- ○
added
SpanEvaluatorInputTraceOrSessionEvaluatorInputto theanyOf[UpdateEvaluationTaskRequest]/evaluators/items/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
evaluators/items/query_mappingsto the response with the200statusresponse-optional-property-added
- ○
added the optional property
query_filtersto the response with the200statusresponse-optional-property-added
- ▲
- ○
added the optional property
run_configuration/allOf[RunConfiguration]/oneOf[LlmGenerationRunConfig]/invocation_parameters/service_tierto the response with the200statusresponse-optional-property-added
- ○
added the optional property
run_configuration/allOf[RunConfiguration]/oneOf[TemplateEvaluationRunConfig]/invocation_parameters/service_tierto the response with the200statusresponse-optional-property-added
- ○
- ▲
removed
LlmGenerationRunConfigTemplateEvaluationRunConfigAgentCallRunConfigfrom theanyOf[UpdateRunExperimentTaskRequest]/run_configurationrequest propertyoneOflistrequest-property-one-of-removed
- ○
mapped value for discriminator key
AGENT_CALLchanged fromAgentCallRunConfigtoAgentCallRunConfigRequestforanyOf[UpdateRunExperimentTaskRequest]/run_configurationrequest propertyrequest-property-discriminator-mapping-changed
- ○
mapped value for discriminator key
LLM_GENERATIONchanged fromLlmGenerationRunConfigtoLlmGenerationRunConfigRequestforanyOf[UpdateRunExperimentTaskRequest]/run_configurationrequest propertyrequest-property-discriminator-mapping-changed
- ○
mapped value for discriminator key
TEMPLATE_EVALUATIONchanged fromTemplateEvaluationRunConfigtoTemplateEvaluationRunConfigRequestforanyOf[UpdateRunExperimentTaskRequest]/run_configurationrequest propertyrequest-property-discriminator-mapping-changed
- ○
added
LlmGenerationRunConfigRequestTemplateEvaluationRunConfigRequestAgentCallRunConfigRequestto theanyOf[UpdateRunExperimentTaskRequest]/run_configurationrequest propertyoneOflistrequest-property-one-of-added
- ▲
Of the 16 revisions, 1 has no diff computed.