Rerun Workflow
Workflows
Rerun Workflow
Rerun an existing workflow with new parameters
Rerun Workflow
Overview
Rerun an existing workflow with new parameter values while keeping the same workflow structure. This is useful for executing the same workflow definition with different inputs.The workflow definition (JSON structure) is reused from the original workflow. Only dynamic parameters can be changed.
Content Type
This endpoint requiresmultipart/form-data content type for file upload support.
Maximum file size: 50MB per request
Path Parameters
string
required
The unique identifier (UUID) of the workflow to rerun.
Request Parameters
Only include dynamic parameters you want to update. The original workflow’s name, tags, and structure are preserved.Dynamic Parameters
string
Text parameter - prefix the field name with
$ followed by the placeholder name.Example: $prompt for a new text promptfile
File parameter - prefix the field name with
$ followed by the placeholder name, and include the new file.Example: $input_image for a new image filestring
Choice parameter - prefix the field name with
# followed by the placeholder name.Example: #sampler for a different samplerLearn more about placeholders and dynamic parameters in the Workflows concept page.
Response
string
required
Unique identifier (UUID) for the new workflow instance.
string
required
The workflow’s name (same as original).
string
required
Initial status of the workflow (typically
accepted).Possible values: accepted, uploaded, queued, running, completed, cancelled, invalid, failedstring[]
required
Array of tags associated with the workflow (same as original).
string
required
ISO 8601 timestamp when the new workflow was created.
string
required
ISO 8601 timestamp when the workflow was last updated.
string
ISO 8601 timestamp when execution started (null initially).
string
ISO 8601 timestamp when execution completed (null initially).
Example Response
cURL Example
Since the API playground doesn’t support file uploads, use this cURL command to test:{id}with the workflow UUID you want to rerunYOUR_API_TOKENwith your actual API token- Only include the parameters you want to change
- Use
$prefix for text/file parameters,#prefix for choice parameters
-F flag automatically handles multipart/form-data with proper boundaries.
Error Responses
error
Bad request - validation error in the request.Common causes:
- File size exceeds 50MB limit
- Invalid parameter format
- Workflow parameter validation failed
- No runner available with matching tags
error
Unauthorized - invalid or missing authentication token.
error
Forbidden - workflow parameter limit exceeded for your tier.
error
Not Found - original workflow with the specified ID does not exist or does not belong to your account.
Notes
- Creates a new workflow instance with a new UUID
- Original workflow remains unchanged
- Workflow structure (JSON) is copied from the original
- Name and tags are copied from the original workflow
- Only dynamic parameters need to be provided
- The rerun workflow is scheduled on available runners based on the original workflow’s tags
- Useful for batch processing with different inputs
- Each rerun counts toward your workflow limits
- Use cURL, Postman, or application code for testing - the API playground doesn’t support file uploads