•••
 
Documentation   /   API   /   API: Deleting tasks
 
 

API: Deleting tasks

 

Endpoint

POST https://plainly.com/delete

Parameters (all required)

Parameter Description
task The key of the task to delete. In the workflow this is {{checklist_key}}.
key The workflow's API key, from its Developer tab.
workflow_id The workflow's ID, shown in the Workflows section of the Toolkit.

Example

curl -X POST https://plainly.com/delete \
  --data-urlencode "key=YOUR_WORKFLOW_API_KEY" \
  --data-urlencode "workflow_id=YOUR_WORKFLOW_ID" \
  --data-urlencode "task=1a2b3c4d5e6f7g8h"

On success

{
  "data": {
    "status": 200,
    "title": "Task deleted",
    "detail": "The task was permanently deleted."
  }
}
Important

Deleting is permanent. To keep the task's data, stop it instead.

Errors

Status Title Detail
400 Missing attribute Please refer to our Documentation.
400 Invalid attribute Your parameters were invalid.
400 Bad request That task has already been deleted.
500 Technical error Something went wrong. Please contact us.