Update Eval
Update an existing eval's fields and prompts.
Args: eval_uuid (str): UUID of the eval to update. update_request (EvalUpdateRequest): Update data including fields and prompt modifications. workspace_uuid (str, optional): Optional workspace UUID for filtering.
Returns: Eval: The updated eval data.
Raises: AymaraAPIError: If the eval is not found or update is invalid.
Example: PUT /api/evals/{eval_uuid} { "name": "Updated Eval Name", "ai_description": "Updated description", "prompt_updates": [ {"prompt_uuid": "...", "content": "New content", "action": "update"}, {"prompt_uuid": "...", "action": "delete"} ], "prompt_creates": [ {"content": "New prompt", "category": "test"} ] }
Path parameters
Query parameters
Request body
Response
OK
Changes
Changed in 8 of the 25 revisions of this API.6219
- ▲
removed the required property
ai_instructions/anyOf[subschema #2: AgentInstructions]/tools/oneOf[subschema #1: ToolArray]/value/items/idfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
ai_instructions/anyOf[subschema #3: WorkflowInstructions]/instructions/items/tools/oneOf[subschema #1: ToolArray]/value/items/idfrom the response with the200statusresponse-required-property-removed
- ●
removed the request property
ai_instructions/anyOf[subschema #2: AgentInstructions]/tools/oneOf[subschema #1: ToolArray]/value/items/idrequest-property-removed
- ●
removed the request property
ai_instructions/anyOf[subschema #3: WorkflowInstructions]/instructions/items/tools/oneOf[subschema #1: ToolArray]/value/items/idrequest-property-removed
- ▲
- ○
added
subschema #1subschema #4to theai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #1subschema #4from theai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
- ○
added the new optional request property
ai_instructions/anyOf[subschema #2: AgentInstructions]/agent_namenew-optional-request-property
- ○
added
WorkflowInstructionsto theai_instructionsrequest propertyanyOflistrequest-property-any-of-added
- ○
added the optional property
ai_instructions/anyOf[subschema #2: AgentInstructions]/agent_nameto the response with the200statusresponse-optional-property-added
- ○
added
WorkflowInstructionsto theai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ▲
removed
ToolsListToolDictToolsStringfrom theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyanyOflistrequest-property-any-of-removed
- ▲
added
ToolArrayToolDictToolStringto theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
added discriminator to
ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyrequest-property-discriminator-added
- ○
added
ToolArrayToolDictToolStringto theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyoneOflistrequest-property-one-of-added
- ○
removed
ToolsListToolDictToolsStringfrom theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
added discriminator to
ai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse property for the response status200response-property-discriminator-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed
subschema #1subschema #3from theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1subschema #3to theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1subschema #3to theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #1subschema #3from theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ▲
- ▲
removed
subschema #2from theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyanyOflistrequest-property-any-of-removed
- ○
added
subschema #1to theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsrequest propertyanyOflistrequest-property-any-of-added
- ○
added
subschema #1to theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #2from theai_instructions/anyOf[subschema #2: AgentInstructions]/toolsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ▲
- ○
added
AgentInstructionsto theai_instructionsrequest propertyanyOflistrequest-property-any-of-added
- ○
added
AgentInstructionsto theai_instructionsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
- ○
endpoint added
endpoint-added
- ○