Update test run case status
PUT
/projects/{project_id}/test_runs/{test_run_id}/test_casesBase URL
https://arcus.testsigma.com/api/v1Updates the execution status of one or more test cases within a test run.
Authenticate with your API key as a
Bearer token in the Authorization header. How to authenticate →Path parameters
project_id | Unique identifier of the project the test run belongs to. |
test_run_id | Identifier of the test run whose test cases are updated. |
Request body
data | Sent as multipart/form-data (not a raw JSON body). A text field holding a JSON object with a test_run_cases array (fields below). |
test_run_cases[].test_case_id | Unique identifier of the test case to update. |
test_run_cases[].test_run_status_id | Identifier of the status to set for the test case. |
test_run_cases[].user_id | Unique identifier of the user executing the test case. |
test_run_cases[].description | Additional details about the test case execution. |
attachments_0_0 | Optional file attachment for the result (e.g. a screenshot). Use incrementing suffixes for multiple attachments. |
Response attributes
message | Confirmation message indicating the test run cases were updated; may be empty. |
Request
curl -X PUT \
'https://arcus.testsigma.com/api/v1/projects/{project_id}/test_runs/{test_run_id}/test_cases' \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"data": {
"test_run_cases": [
{
"test_case_id": "1c4a6347-dec5-4f8e-8b6c-cda33c37c9ce",
"test_run_status_id": "0ba381b5-c018-40c6-b6fa-10d6e556ef9d",
"user_id": "05782b39-ed88-4bd5-84e2-705bb1610da2",
"description": "Test case execution done Via API - 5"
}
]
}
}'const response = await fetch('https://arcus.testsigma.com/api/v1/projects/{project_id}/test_runs/{test_run_id}/test_cases', {
method: 'PUT',
headers: {
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"data": {
"test_run_cases": [
{
"test_case_id": "1c4a6347-dec5-4f8e-8b6c-cda33c37c9ce",
"test_run_status_id": "0ba381b5-c018-40c6-b6fa-10d6e556ef9d",
"user_id": "05782b39-ed88-4bd5-84e2-705bb1610da2",
"description": "Test case execution done Via API - 5"
}
]
}
})
});
const data = await response.json();import requests
response = requests.put(
'https://arcus.testsigma.com/api/v1/projects/{project_id}/test_runs/{test_run_id}/test_cases',
headers={
'Authorization': 'Bearer <API_KEY>',
'Content-Type': 'application/json'
},
json={
"data": {
"test_run_cases": [
{
"test_case_id": "1c4a6347-dec5-4f8e-8b6c-cda33c37c9ce",
"test_run_status_id": "0ba381b5-c018-40c6-b6fa-10d6e556ef9d",
"user_id": "05782b39-ed88-4bd5-84e2-705bb1610da2",
"description": "Test case execution done Via API - 5"
}
]
}
}
)
data = response.json()Response200 OK
{
"message": ""
}Was this page helpful?
Thanks for the feedback.