Skip to main content
PATCH
/
v2
/
datasets
/
{dataset_id}
/
datapoints
/
{datapoint_id}
Update a datapoint
curl --request PATCH \
  --url https://api.orq.ai/v2/datasets/{dataset_id}/datapoints/{datapoint_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "inputs": {},
  "messages": [
    {
      "role": "developer",
      "content": "<string>",
      "name": "<string>"
    }
  ],
  "expected_output": "<string>"
}'
{
  "_id": "<string>",
  "workspace_id": "<string>",
  "inputs": {},
  "messages": [
    {
      "role": "developer",
      "content": "<string>",
      "name": "<string>"
    }
  ],
  "expected_output": "<string>",
  "evaluations": [
    {
      "id": "<string>",
      "evaluation_type": "human_review",
      "human_review_id": "<string>",
      "source": "orq",
      "reviewed_by_id": "<string>",
      "reviewed_at": "2025-10-30T20:19:25.175Z",
      "type": "string",
      "value": "<string>"
    }
  ],
  "dataset_id": "<string>",
  "snapshot_version": "<string>",
  "created_by_id": "<string>",
  "updated_by_id": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

dataset_id
string
required

The unique identifier of the dataset

datapoint_id
string
required

The unique identifier of the datapoint

Body

application/json
inputs
object

The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.

messages
(Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object)[]

A list of messages comprising the conversation so far

  • Developer message
  • System message
  • User message
  • Assistant message
  • Tool message
expected_output
string

Response

Dataset item updated.

_id
string
required

The unique identifier of the dataset item

workspace_id
string
required

The unique identifier of the workspace it belongs to

dataset_id
string
required

The unique identifier of the dataset

inputs
object

The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.

messages
(Developer message · object | System message · object | User message · object | Assistant message · object | Tool message · object)[]

A list of messages comprising the conversation so far

  • Developer message
  • System message
  • User message
  • Assistant message
  • Tool message
expected_output
string
evaluations
object[]

Evaluations associated with the datapoint

  • Option 1
  • Option 2
  • Option 3
snapshot_version
string

The version of the dataset snapshot

created_by_id
string

The unique identifier of the user who created the dataset

updated_by_id
string

The unique identifier of the user who last updated the dataset

created
default:2025-10-30T20:19:20.787Z

The date and time the resource was created

updated
default:2025-10-30T20:19:20.788Z

The date and time the resource was last updated