Update Eval
Changed onUpdate 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"} ] }
Request
- Base URLhttps://api.aymara.ai
- Auth
- API key in header x-api-key
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Request body
Response
OK
Changes
- breaking
removed the required property
//////from the response with the status - breaking
removed the required property
////////from the response with the status - warning
removed the request property
////// - warning
removed the request property
////////
- breaking
- info
added
subschema #1subschema #4to theresponse propertyanyOflist for the response status - info
removed
subschema #1subschema #4from theresponse propertyanyOflist for the response status
- info