Notes
Namespace notes (actionstools_app/notes/), table em_actions_notes2 in production
(em_actions_notes_staging elsewhere), key (target_uuid, uuid). All routes require a JWT
(api/index.adoc#authentication). Notes use AllowEverythingValidator, so any
authenticated user may edit any note.
| Method | Path | Behaviour |
|---|---|---|
GET |
|
Notes for |
POST |
|
Create. Body |
GET |
|
Single note, looked up by |
PUT |
|
Replace body and top-level fields. Needs |
PATCH |
|
Change top-level attributes only ( |
DELETE |
|
Soft delete (sets |
GET |
|
Pinned notes for the target ( |
POST |
|
|
POST |
|
A list of notes: items with |
is_pinned is stored as 0/1 and returned as a boolean (translate_pinned). Every returned
item gets "type": "note", which the activity stream relies on.
{
"body": "<p>Supplier asked for a call back on Monday</p>",
"user": {"email": "agent@payability.com", "loginKey": "73f3d1f2-b0b1-41d6-9580-56de610577a4"},
"is_pinned": false
}