Skip to content
Testsigma DOCS

Create test step

POST/test_cases/:test_case_id/test_steps

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

Add a new step to an existing test case.

Authenticate with your API key as a Bearer token in the Authorization header. Generate a key →
test_case_idID of the test case to add the step to.
positionOrder position for the step (1-indexed).
actionNLP action string that defines what the step does.
typeStep type — ACTION or VERIFY.
disabledSet to true to disable the step without deleting it.
idID of the newly created step.
testCaseIdParent test case ID.
positionPosition of the step in the test case.
actionThe action string.
typeStep type.
REQUEST
curl -X POST \
  'https://app.testsigma.com/api/v1/test_cases/:test_case_id/test_steps' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "position": 4,
    "action": "Click on the Login button",
    "type": "ACTION",
    "disabled": false
  }'
const response = await fetch('https://app.testsigma.com/api/v1/test_cases/:test_case_id/test_steps', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "position": 4,
      "action": "Click on the Login button",
      "type": "ACTION",
      "disabled": false
  })
});
const data = await response.json();
import requests

response = requests.post(
  'https://app.testsigma.com/api/v1/test_cases/:test_case_id/test_steps',
  headers={
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  json={
      "position": 4,
      "action": "Click on the Login button",
      "type": "ACTION",
      "disabled": false
  }
)
data = response.json()
RESPONSE200OK
{
  "id": 504,
  "testCaseId": 200,
  "position": 4,
  "action": "Click on the Login button",
  "type": "ACTION",
  "disabled": false,
  "createdById": 9
}