Skip to content
Testsigma DOCS

Update test step

PUT/test_cases/:test_case_id/test_steps/:step_id

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

Modify an existing test step's action, position, or disabled state.

Authenticate with your API key as a Bearer token in the Authorization header. Generate a key →
test_case_idID of the test case that contains the step.
step_idID of the step to update.
actionUpdated NLP action string.
positionUpdated position in the test case.
disabledSet to true to disable the step.
typeStep type — ACTION or VERIFY.
idStep ID.
actionUpdated action string.
positionUpdated position.
disabledDisabled state.
REQUEST
curl -X PUT \
  'https://app.testsigma.com/api/v1/test_cases/:test_case_id/test_steps/:step_id' \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "action": "Click on the Sign In button",
    "position": 4,
    "type": "ACTION",
    "disabled": false
  }'
const response = await fetch('https://app.testsigma.com/api/v1/test_cases/:test_case_id/test_steps/:step_id', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer <API_KEY>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
      "action": "Click on the Sign In button",
      "position": 4,
      "type": "ACTION",
      "disabled": false
  })
});
const data = await response.json();
import requests

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