Delete a draft

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

DELETE https://twnix.e2ehiring.com/api/v1/drafts/{draft_id}

Usage examples

curl -sSX DELETE https://twnix.e2ehiring.com/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

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"
}