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 →PATH PARAMETERS
test_case_id | ID of the test case that contains the step. |
step_id | ID of the step to update. |
REQUEST BODY
action | Updated NLP action string. |
position | Updated position in the test case. |
disabled | Set to true to disable the step. |
type | Step type — ACTION or VERIFY. |
RESPONSE ATTRIBUTES
id | Step ID. |
action | Updated action string. |
position | Updated position. |
disabled | Disabled 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
}