Runrunit

Interact with the Runrunit API

Task → Undo Workflow Step

AI-generated

Summary

Undo a specific workflow step on a task by its ID, optionally sending additional JSON data in the payload.

Inputs

  • Task ID (required) — The unique identifier of the task for which the workflow step undo action should be performed.
  • Payload (JSON) — Optional JSON data to include with the undo action in the request body.
  • Mode — Determines whether to execute the API request or preview the corresponding curl command.

Output shape

The API response body is returned as JSON representing the result of the undo workflow step action.

If 'Mode' is set to 'Preview curl', no request is executed and a curl command is returned instead. If set to 'Execute request', the action is performed and the API's JSON response is outputted.

Examples

Example 1: Undo a workflow step on task ID '12345' with no additional payload

Set Task ID to '12345', leave Payload as default (empty JSON), and Mode to 'Execute request'.

Example 2: Preview the curl command for undoing a workflow step

Set Mode to 'Preview curl' and provide the Task ID. No request is made to the API.

Links

Discussion