Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Arcus
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Update test run case status

PUT/projects/{project_id}/test_runs/{test_run_id}/test_cases
Base URL https://arcus.testsigma.com/api/v1

Updates 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 →
project_idUnique identifier of the project the test run belongs to.
test_run_idIdentifier of the test run whose test cases are updated.
dataSent 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_idUnique identifier of the test case to update.
test_run_cases[].test_run_status_idIdentifier of the status to set for the test case.
test_run_cases[].user_idUnique identifier of the user executing the test case.
test_run_cases[].descriptionAdditional details about the test case execution.
attachments_0_0Optional file attachment for the result (e.g. a screenshot). Use incrementing suffixes for multiple attachments.
messageConfirmation 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?