Discard the draft changes
Not built yet. The path is served for other methods, so your credentials are checked and then
the method is refused: you get 405.
Would reset the draft to the published version, discarding unpublished work.
Path Parameters
- Type: stringFormat: uuidbot
_id required
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for delete/bots/{bot_id}/draft
curl https://api.landbot.io/v0-alpha/bots/123e4567-e89b-12d3-a456-426614174000/draft \
--request DELETE \
--header 'Authorization: Token YOUR_AGENT_TOKEN'
{
"data": {
"bot_id": "123e4567-e89b-12d3-a456-426614174000",
"diagram": {
"nodes": {
"hidden": {
"id": "hidden",
"path": "hidden",
"template": "hidden",
"params": {}
},
"welcome": {
"id": "welcome",
"path": "welcome",
"template": "var_text",
"params": {
"version": 3,
"text": "Hi! What is your name?",
"destination": "name"
}
}
},
"connections": {
"hidden.success--welcome": {
"id": "hidden.success--welcome",
"type": "success",
"sourcePath": "hidden",
"targetPath": "welcome"
}
}
},
"save_state": "IS_PRESAVED",
"has_unpublished_changes": true,
"violations": [
{
"code": "string",
"message": "string",
"block_id": null,
"param": null,
"connections": [
{
"source_path": "string",
"type": "string"
}
]
}
],
"required_tier": "sandbox",
"edited_at": "2026-09-16T09:18:19"
}
}