Endpoint
POST https://embedworkflow.com/api/v1/workflows/{id}/discard_draft
Path Parameters
System-generated unique identifier
Request Body
User's key
Expand related objects
Response
Returns successful.
Response Properties
Unique identifier
Number of actions in the workflow
Created at in specified timezone
Created at formatted as human-readable string
Created at in UTC
Whether this is a default template for new users (Admin only)
Description of the workflow
Event trigger configuration
Draft event trigger configuration
Number of times workflow has been executed
Permission groups (Admin only)
Whether the workflow has unsaved draft changes
Unique key for the workflow
Last published at in specified timezone
Last published at formatted as human-readable string
Last published at in UTC
Conditions for matching workflow execution
Draft conditions for matching workflow execution
Name of the workflow
Object type identifier
Whether the workflow is enabled
Workflow execution statistics
Current status of the workflow
Published workflow template layout
Draft workflow template layout
Conditions for triggering the workflow
Draft conditions for triggering the workflow
Updated at in specified timezone
Updated at formatted as human-readable string
Updated at in UTC
Errors
404
- not found
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
{ "id": "0198c2e9-ceac-7c14-b9a4-0b741b1ac08a", "actions_count": 0, "created_at": "2025-08-19T11:19:19-04:00", "created_at_string": "Aug 19, 2025 11:19 am EDT", "created_at_utc": "2025-08-19T15:19:19Z", "default_template": false, "description": null, "event_trigger": null, "event_trigger_draft": null, "executions_count": 0, "groups": [], "has_draft": false, "key": "workflow_17", "last_published_at": null, "last_published_at_string": null, "last_published_at_utc": null, "match_conditions": null, "match_conditions_draft": null, "name": "Workflow 17", "object": "workflow", "on": false, "stats": {}, "status": "off", "template": { "action_types": [], "edges": [], "height": 150, "nodes": [ { "id": "start_of_workflow", "type": "Start", "name": "Start Workflow" } ], "object": "workflow_layout_template", "positions": { "start_of_workflow": { "x": 450, "y": 0 } }, "width": 1200 }, "template_draft": { "action_types": [], "edges": [], "height": 150, "nodes": [ { "id": "start_of_workflow", "type": "Start", "name": "Start Workflow" } ], "object": "workflow_layout_template", "positions": { "start_of_workflow": { "x": 450, "y": 0 } }, "width": 1200 }, "trigger_conditions": {}, "trigger_conditions_draft": {}, "updated_at": "2025-08-19T11:19:19-04:00", "updated_at_string": "Aug 19, 2025 11:19 am EDT", "updated_at_utc": "2025-08-19T15:19:19Z" }