Delete a draft

DELETE https://chat.onecount.net/api/v1/drafts/{draft_id}

Delete a single draft from the server. The deletion will be automatically synchronized to other clients via a drafts event.

Usage examples

curl -sSX DELETE https://chat.onecount.net/api/v1/drafts/1 \
    -u BOT_EMAIL_ADDRESS:BOT_API_KEY

Parameters

draft_id integer required in path

Example: 1

The ID of the draft you want to delete.


Response

Example response(s)

A typical successful JSON response may look like:

{
    "msg": "",
    "result": "success"
}

JSON response for when no draft exists with the provided ID.

{
    "msg": "Draft does not exist",
    "result": "error"
}