/api/orgs/{org_id}/datasets/{dataset_id}/items/{item_id}Edit a dataset item
Change an item's expected output or metadata.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.dataset_idstringrequiredThe dataset id.
item_idstringrequiredThe item id.
Request body
expected_outputanyThe expected output.
metadataobject | null
Responses
200The item.
Response
idstringinputanyThe input (messages and tools for a request).
expected_outputanyThe expected output, or null.
metadataobjectsourceobjectsource
kindenumidstring | null
created_atstring
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404The resource does not exist or belongs to another organization.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl -X PATCH 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/items/6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c' \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"expected_output": {
"role": "assistant",
"content": "Order 4471 shipped on Monday, November 16."
}
}'Response
{
"id": "6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c",
"input": {
"messages": [
{
"role": "user",
"content": "Where is order 4471?"
}
]
},
"expected_output": {
"role": "assistant",
"content": "Order 4471 shipped on Monday."
},
"metadata": {},
"source": {
"kind": "request",
"id": "req_01JD8ZK4M2Q7V9X3N5T6B8C0EF"
},
"created_at": "2026-11-18T14:32:07Z"
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/datasets/1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e/items/6f5e4d3c-2b1a-4f0e-9d8c-7b6a5f4e3d2c