POST
/v1/tools/delete_draftfreeDelete a draft
Deletes a draft for good, by its name (draft_…): what was set on a page and not yet run. The runs made from it stay. It cannot be undone.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
draft | string | Required | Its name, draft_… |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/delete_draft \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"draft":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.