cURL
curl --request PUT \ --url https://api.example.com/api/trpc/test-runs.update \ --header 'Content-Type: application/json' \ --data ' { "0": { "json": { "data": { "status": "<string>", "configuration": { "timeout": 123, "retry_count": 123, "parallel_steps": true, "screenshot_on_failure": true, "video_recording": true }, "variables": {} } } } } '
{ "id": "<string>", "status": "<string>", "updated_at": "<string>", "configuration": {}, "variables": {}, "400 Bad Request": {}, "404 Not Found": {}, "401 Unauthorized": {}, "409 Conflict": {} }
Update a test run configuration or status
Show properties
cancelled
paused
resumed
curl -X PUT https://api.tryiris.dev/api/trpc/test-runs.update \ -H "Authorization: Bearer ${API_KEY}" \ -H "Content-Type: application/json" \ -d '{ "0": { "json": { "data": { "status": "paused", "configuration": { "timeout": 600, "retry_count": 3 }, "variables": { "DEBUG_MODE": "true" } } } } }'
{ "id": "run_2f3e4d5c6b", "status": "paused", "created_at": "2024-01-20T14:00:00Z", "updated_at": "2024-01-20T14:15:00Z", "configuration": { "timeout": 600, "retry_count": 3, "parallel_steps": true, "screenshot_on_failure": true, "video_recording": true }, "variables": { "USER_EMAIL": "test@example.com", "PRODUCT_SKU": "DEMO-123", "DEBUG_MODE": "true" } }
{ "error": "invalid_request", "message": "Invalid status transition" }
{ "error": "not_found", "message": "Test run not found" }
{ "error": "unauthorized", "message": "Invalid API key provided" }
{ "error": "conflict", "message": "Cannot pause a completed test run" }