Overview
The Delete Workflow Draft endpoint removes the staged draft for a workflow. The live (published) workflow is unaffected — only the in-progress changes are thrown away. Use this when you want to abandon a round of edits and start fresh.Authentication
Requires a valid API key. No special permission scope is needed beyond a valid key.Key Features
- Non-Destructive: The live workflow is preserved
- Safe Reset: Abandon draft changes without touching execution history
- No Credit Cost: This endpoint is free to use
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The unique workflow ID |
Example Response
Response Fields
| Field | Type | Description |
|---|---|---|
message | string | Human-readable status message |
success | boolean | true on success |
data.deleted | boolean | Always true on success |
data.workflow_id | string | The ID of the workflow whose draft was deleted |
Credit Usage
This endpoint is free and does not consume credits.Related Endpoints
- Upsert Workflow Draft to create a new draft
- Get Workflow Draft to read the current draft
- Delete Workflow to remove the entire workflow