Easymailing
Notes

Delete a note

DELETE /notes/{uuid}

DELETE/notes/{uuid}

Permanently deletes a note. There is no archive and no undo.

When to use: Only when the user explicitly asks to delete this note, for example one written on the wrong record.

When not to use: To correct the text, use update_note. To write the note again on the right record, use create_note first.

Side effects: A note.deleted entry appears in the activity of the record, with the title but not the text; the earlier entries of the note stay. Nothing is sent and no webhook fires.

Permissions: Requires a CRM seat and the crm.tasks_notes.write capability. The user must also be able to see the record the note belongs to (crm.contacts_companies.read for a contact or company, crm.opportunities.read plus access to the pipeline for an opportunity). Only the author of the note or an account admin with a token that reaches account administration (an API key, or OAuth with the admin scope) can do it; notes written through the API belong to the person who owns the token, so that person can edit them later.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the note. Get it from list_notes.

Formatuuid

Query Parameters

expected_version?integer

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

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/notes/9b6d2f84-1a3c-4e57-8d0b-4c7a5e1f3d62?expected_version=1" \  -H "X-Auth-Token: YOUR_API_KEY"
Empty