UpdateEvaluatorVersionStatus
Updates the status of an evaluator version.
Operation description
Publishes a saved evaluator draft, takes a published version offline, or brings an offline version back online.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:UpdateEvaluatorVersionStatus |
update |
*Evaluator
|
None | None |
Request syntax
PUT /api/v1/evaluators/{agentSpace}/{name}/version-status HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
Yes |
The name of the AgentSpace to which the evaluator belongs. |
my-agent-space |
| name |
string |
Yes |
The name of the custom evaluator. |
answer-quality |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The evaluator version to update and its target status. |
{"version":"v3","status":"PUBLISHED","expectedStatus":"DRAFT","versionDescription":"Added scoring rules for answer accuracy"} |
| version |
string |
Yes |
The version number to update. The maximum length is 64 characters. |
v3 |
| status |
string |
Yes |
The target status. Valid values:
|
PUBLISHED |
| expectedStatus |
string |
No |
The expected current status. Valid values: DRAFT, PUBLISHED, and OFFLINE. If the specified value does not match the actual status, the API returns a 409 error. |
DRAFT |
| versionDescription |
string |
No |
The version description provided when a draft is published for the first time. The maximum length is 256 characters. |
Added scoring rules for answer accuracy |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for updating the status of an evaluator version. |
||
| requestId |
string |
The unique identifier of the request. |
3FE4CD1E-FF41-56BE-B590-7A021D9C1524 |
Examples
Success response
JSON format
{
"requestId": "3FE4CD1E-FF41-56BE-B590-7A021D9C1524"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.