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

Update Test Case Results Using API

PUT/execution_results/{run_id}/override
Base URL https://app.testsigma.com/api/v1Region

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. How to authenticate →
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()
Response200 OK
{
  "errors": [],
  "message": "Overridden the results successfully"
}

Was this page helpful?