Skip to content
Testsigma DOCS

Update Test Case Results Using API

PUT/execution_results/{run_id}/override

Base URL  https://app.testsigma.com/api/v1

Update Test Case results as Passed, Failed, or Not Executed for an execution run using the REST API.

Authenticate with your API key as a Bearer token in the Authorization header. Generate a key →
run_idID of the execution run. Can be obtained from the Run Results.
testCaseResultIdID of the Test Case result.
commentComment you want to add to change the result.
resultThe result you want to override the current result with.
errorsErrors in request fields if there are any.
messageMessage of overridden results.
REQUEST
curl -X PUT \
  'https://app.testsigma.com/api/v1/execution_results/{run_id}/override' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "testCaseResultId": 3646,
      "comment": "Modifying the results 1",
      "result": "SUCCESS"
    }
  ]'
const response = await fetch('https://app.testsigma.com/api/v1/execution_results/{run_id}/override', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify([
      {
          "testCaseResultId": 3646,
          "comment": "Modifying the results 1",
          "result": "SUCCESS"
      }
  ])
});
const data = await response.json();
import requests

response = requests.put(
  'https://app.testsigma.com/api/v1/execution_results/{run_id}/override',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  json=[
      {
          "testCaseResultId": 3646,
          "comment": "Modifying the results 1",
          "result": "SUCCESS"
      }
  ]
)
data = response.json()
RESPONSE200OK
{
  "errors": [],
  "message": "Overridden the results successfully"
}