curl --request POST \ --url https://script.so/api/v1/workflows/{workflowId}/steps \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "Save the summary to Google Sheets", "position": 3}'
Copy
{ "id": "step_1", "description": "Fetch all orders from Shopify created in the last 24 hours", "status": "pending", "position": 1, "inputs": [ "orders" ], "outputs": [ "summary" ]}
Steps
Add step
Add a new step to an existing workflow
POST
/
workflows
/
{workflowId}
/
steps
Add step
Copy
curl --request POST \ --url https://script.so/api/v1/workflows/{workflowId}/steps \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "description": "Save the summary to Google Sheets", "position": 3}'
Copy
{ "id": "step_1", "description": "Fetch all orders from Shopify created in the last 24 hours", "status": "pending", "position": 1, "inputs": [ "orders" ], "outputs": [ "summary" ]}