cURL
curl --request PUT \ --url https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId} \ --header 'Authorization: <authorization>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "systemPrompt": "<string>", "maxTurns": 123, "variables": {} } '
{ "data": {} }
Update a test case by ID
Documentation IndexFetch the complete documentation index at: https://docs.pathors.com/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.pathors.com/llms.txt
Use this file to discover all available pages before exploring further.
PUT https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId}
curl -X PUT https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId} \ -H "Authorization: Bearer dk_your_key" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated greeting flow", "maxTurns": 10 }'
{ "data": { "id": "test-case-uuid", "projectId": "project-uuid", "name": "Updated greeting flow", "systemPrompt": "You are a helpful assistant", "maxTurns": 10, "variables": {}, "acceptanceCriteria": [], "createdAt": "2026-03-23T00:00:00.000Z", "updatedAt": "2026-03-23T00:00:00.000Z" } }