Skip to main content
PATCH
/
v2
/
tasks
/
{task_id}
Update task
curl --request PATCH \
  --url https://api.arize.com/v2/tasks/{task_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "name": "Updated Task Name",
  "sampling_rate": 0.5,
  "query_filter": "metadata.environment = 'staging'"
}
EOF
{
  "id": "T25saW5lVGFzazo0NTpxUndY",
  "name": "Updated Task Name",
  "type": "template_evaluation",
  "project_id": "TW9kZWw6MTIzOmFCY0Q=",
  "dataset_id": null,
  "sampling_rate": 0.5,
  "is_continuous": true,
  "query_filter": "metadata.environment = 'staging'",
  "evaluators": [
    {
      "evaluator_id": "RXZhbHVhdG9yOjEyOmFCY0Q=",
      "evaluator_name": "Hallucination Eval",
      "query_filter": null,
      "column_mappings": {
        "input": "attributes.input.value",
        "output": "attributes.output.value"
      }
    }
  ],
  "experiment_ids": [],
  "last_run_at": "2026-03-01T14:30:00.000Z",
  "created_at": "2026-02-20T10:00:00.000Z",
  "updated_at": "2026-03-10T15:00:00.000Z",
  "created_by_user_id": "VXNlcjoxOm5OYkM="
}

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Path Parameters

task_id
string
required

The task global ID (base64) A universally unique identifier

Example:

"RW50aXR5OjEyMzQ1"

Body

application/json

Body containing task update parameters

name
string

New task name

Minimum string length: 1
sampling_rate
number

Sampling rate between 0 and 1. Only applicable for project-based tasks.

Required range: 0 <= x <= 1
is_continuous
boolean

Whether the task runs continuously. Only applicable for project-based tasks.

query_filter
string | null

Task-level query filter applied to all data. Pass null to clear.

evaluators
object[]

Replaces the entire evaluator list. At least one evaluator is required when provided.

Minimum array length: 1

Response

Returns the updated task

A task is a typed, configurable unit of work that ties one or more evaluators to a data source (project or dataset).

id
string
required

The unique identifier for the task

name
string
required

The name of the task

type
enum<string>
required

The task type: template_evaluation or code_evaluation

Available options:
template_evaluation,
code_evaluation
is_continuous
boolean
required

Whether the task runs continuously on incoming data.

query_filter
string | null
required

Task-level query filter applied to all data.

evaluators
object[]
required

The evaluators attached to this task.

experiment_ids
string[]
required

Experiment global IDs (base64) for dataset-based tasks.

last_run_at
string<date-time> | null
required

When the task was last run.

created_at
string<date-time>
required

When the task was created.

updated_at
string<date-time>
required

When the task was last updated.

created_by_user_id
string | null
required

The unique identifier for the user who created the task.

project_id
string | null

The project global ID (base64). Present for project-based tasks.

dataset_id
string | null

The dataset global ID (base64). Present for dataset-based tasks.

sampling_rate
number | null

Sampling rate between 0 and 1. Only applicable for project-based tasks.

Required range: 0 <= x <= 1