Forum Discussion
christovskia
Staff
1 day ago
| The issue you are encountering with the "Invalid Payload" error is due to an incorrect JSON structure for the `POST /v2/testcases/{testCaseKey}/teststeps` endpoint. Based on the information from historical cases and knowledge articles, the correct payload structure for step-by-step test steps in Zephyr Scale Cloud should include a `mode` key and a `steps` key. Here is the correct JSON payload format: ```json { "mode": "OVERWRITE", "steps": [ { "description": "Your step description", "expectedResult": "What you expect after the step" }, { "description": "Next step description", "expectedResult": "Next expected result" } ] } ``` Resolution Steps 1. Use the endpoint: `POST /v2/testcases/{testCaseKey}/teststeps`. 2. Include the query parameter `?mode=OVERWRITE` in the URL. 3. Ensure the JSON payload follows the structure provided above. |