Update a specific workflow test by its ID.
curl --request PATCH \ --url https://api.withcortex.ai/apps/{app_id}/workflows/{workflow_id}/tests/{test_id} \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "input": {}, "input_default": {}, "expectations": [ { "name": "<string>", "script": "<string>", "output": "<any>", "status": "PASSED" } ] }'
{ "id": "<string>", "name": "<string>", "input": {}, "input_default": {}, "expectations": [ { "name": "<string>", "script": "<string>", "output": "<any>", "status": "PASSED" } ], "workflow_id": "<string>", "created_at": "2023-12-25", "updated_at": "2023-12-25" }
Show child attributes
PASSED
FAILED
Was this page helpful?