Update an eval scenario
curl --request PATCH \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>",
"suite": "<string>"
}
'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID}"
payload = {
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>",
"suite": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', rubric: '<unknown>', script: '<unknown>', suite: '<string>'})
};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"origin": "<string>",
"suite": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Conversations
Update an eval scenario
Correct a scenario in place, keeping its id and past results. Organization API keys only.
PATCH
/
conversations
/
instances
/
{instanceSlug}
/
eval-scenarios
/
{scenarioID}
Update an eval scenario
curl --request PATCH \
--url https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>",
"suite": "<string>"
}
'import requests
url = "https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID}"
payload = {
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>",
"suite": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', rubric: '<unknown>', script: '<unknown>', suite: '<string>'})
};
fetch('https://api.usenexio.com/conversations/instances/{instanceSlug}/eval-scenarios/{scenarioID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created_at": "2023-11-07T05:31:56Z",
"id": "<string>",
"origin": "<string>",
"suite": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"name": "<string>",
"rubric": "<unknown>",
"script": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}{
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
}Path Parameters
Body
application/json
Last modified on November 30, 2026