DeleteTask

Function to delete a task (the task is marked as deleted and is no longer shown)

DELETE https://rest.crmango.com/api/DeleteTask

Authorization

1 Sent in the request headers
Bearer varchar

Auth token (required in Authorization header)

Body data

1 Sent in the request body
task_id integer

ID of the task to delete (required)

Response

2 HTTP 200

Function to delete a task (the task is marked as deleted and is no longer shown)

code integer

HTTP status code (200 = OK)

message varchar

Confirmation message

Example request

curl --request DELETE \
  --url 'https://rest.crmango.com/api/DeleteTask' \
  --header 'Authorization: Bearer auth_token' \
  --header 'Content-Type: application/json' \
  --data '{
    {
      "task_id": 1234
    }
  }'
{
    "code": 200,
    "message": "Task has been deleted"
}