Create a note
POST /notes
/notesWrites a note on one contact, company or opportunity: free text with an optional title.
When to use: To keep information on a record: what was said in a call or meeting, an agreement, a preference, context for whoever talks to the person next.
When not to use: For something that has to be done, with a due date or a person responsible, use create_task. To change an existing note, use update_note. A note cannot be attached to two records: write it on the most relevant one. To store data fields of the record (job title, budget, lead source), use update_contact or update_company.
Side effects: A note.created entry appears in the activity of the record, done by the person who owns the token (marked «via Maia» when Maia made the request). The note is authored by that person, who can edit and delete it later. Nothing is sent to anyone and no automation or webhook fires (CRM webhook events do not exist yet).
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).
Value for the X-Auth-Token header parameter.
In: header
The new Note resource
TypeScript Definitions
Use the request body type in TypeScript.
Notes of the public API (plan fase 4, Task 19). Generated from the approved proposal by fase-4/tools/gen_notes.py and
edited by hand afterwards: the texts are the proposal's. Every operation checks the CRM access in its provider or
processor before anything else, because API Platform evaluates security after the provider.
list_notes pages by cursor (paginationViaCursor goes on the resource: on the operation API Platform 3.4.17 loses
it) and gives the total of the record. cursor is the opaque position of each item, which API Platform copies into
the cursor[gt] of hydra:next (the last item) and the cursor[lt] of hydra:previous (the first one); it is never
published.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/notes" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "record": "/entity/1", "title": "string", "body_html": "string" }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "record": "/entity/1", "record_type": "contact", "title": "string", "body_html": "string", "preview_text": "string", "created_by": { "kind": "user", "name": "string" }, "updated_by": { "kind": "user", "name": "string" }, "version": 0, "can_edit": true, "can_delete": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}