Skip to main content
PATCH
Update dataset item

Authorizations

Authorization
string
header
required

Organization API key, generated in studio.sidenet.ai. Backend only — never in a browser.

Path Parameters

id
string
required

Dataset id.

Example:

"ds_orders_v3"

itemId
string
required

Dataset item id.

Example:

"dsi_2c7e91b4"

Body

application/json
input

The prompt the agent is given for this item. A string is one user message; an array of { role, content } messages sets up a multi-turn prompt whose last message is the turn the agent answers.

Example:

"Can I get a refund on an order I placed yesterday?"

groundTruth

The expected answer, for scorers that compare against one (answer similarity, faithfulness, …). A string is the usual shape; an object is accepted for structured outputs.

Example:

"Yes — orders can be refunded within 14 days. Ask for the order number."

requestContext
object | null

Per-item run settings. threadId pins the item to a conversation thread (several items sharing one thread form one conversation; run those with maxConcurrency 1). variables fills the {{placeholders}} in the agent's prompt blocks for this item, merged over the run-level variables leaf by leaf. No other keys are accepted.

metadata
object | null

Free-form labels for the item (a category, a source ticket, …). Passed to scorers as additional context.

Example:

Response

The updated item

item
object