Easymailing
Tasks

Delete a task

DELETE /tasks/{uuid}

DELETE/tasks/{uuid}

Permanently deletes a task, open or completed. There is no archive and no undo.

When to use: Only when the user explicitly asks to delete this task, for example one created by mistake or a duplicate.

When not to use: If the work is finished, use complete_task: the task stays in the history of its records. To fix a title, date or assignee, use update_task.

Side effects: The task disappears from its records and from every list; the task.created, task.completed and task.reopened entries already in their activity stay, and no deletion entry is added. The assignee's pending assignment and reminder notices are withdrawn. No webhook fires.

Permissions: Requires a CRM seat and the crm.tasks_notes.write capability. The user must also be able to see every contact, company and opportunity the task is linked to (crm.contacts_companies.read for contacts and companies, access to the pipeline for opportunities). Only the creator of the task, its assignee or an account admin can delete it; an admin needs a token that reaches account administration (an API key, or OAuth with the admin scope) to delete tasks of other people.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the task. Get it from list_tasks.

Formatuuid

Query Parameters

expected_version?integer

Version of the task you read (version). Optional: if you send it and the task has changed since, nothing is saved and you get crm_task_version_conflict; if you leave it out, the change is applied over the current state.

Range1 <= value

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://api.easymailing.com/tasks/7c1e5a90-3b24-4d8f-a6e1-0f9d2c4b8a13?expected_version=3" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty