Skip to main content
POST
Add a session as an evaluation case
Create the target evaluation set and confirm that the session identified by userId and sessionId exists. The service converts that conversation into a new case identified by evalId, allowing a debugging session to become a regression sample
This operation copies conversation content into the evaluation set, which can include user messages and tool results. Review the sample before adding it, then retrieve the case to confirm the saved content

Authorizations

Authorization
string
header
required

Optional locally without a gateway; cloud deployments use the Runtime API key or user-pool JWT required by that deployment, never the model API key

Path Parameters

app_name
string
required

Application name; harness_agent for the CLI deployment

eval_set_id
string
required

Evaluation set ID

Body

application/json
evalId
string
required

Evaluation case ID

sessionId
string
required

Session ID

userId
string
required

User ID

Response

Successful response

Last modified on September 19, 2026