Create a note on an entity
/api/v1/entities/{entity_uuid}/notes
operationId: note.create
Base: https://portal.watcheye.com.au/api/v1/entities/{entity_uuid}/notes
Create a new note attached to the specified entity. The note inherits the entity's program and account.
Notes created via this endpoint are attributed to the calling API key (the response
created_by carries { type: "api_key", uuid, label }). They cannot be edited or
deleted from the portal. Any API key on the same account can manage these notes via the
PATCH and DELETE endpoints.
To attach a note to an event (rather than just to the entity) use the
Events PATCH endpoint with a note field.
Idempotency
This endpoint accepts the Idempotency-Key header so that retries on network failure are
safe. See the Idempotency section of the
API guide for the full contract.
Path parameters
| Field | Description |
|---|---|
entity_uuidrequired |
string (uuid) The entity UUID |
Header parameters
| Field | Description |
|---|---|
Idempotency-Key |
string [max 255 characters] Optional client-generated key (typically a UUID) that lets you safely retry a write
request without risk of duplicate work or duplicate billing. A retry with the same key
and body returns the original response verbatim, with the Honoured on |
Request body
Content type application/json.
The note details
| Field | Description |
|---|---|
note_textrequired |
string [max 5000 characters] Free-text content of the note. Max 5000 characters. |
Responses
Note created
application/json
| Field | Description |
|---|---|
data |
object A note attached to an entity, optionally also linked to an event. Deleting a note is a soft-delete: the record stays in the database for audit /
compliance purposes but is no longer surfaced by the API. Subsequent show or list
calls for a deleted note return |
data. |
string (uuid) The note's UUID |
data. |
string A short obfuscated public identifier for the note (e.g. "N-A1-B2C-3D4") |
data. |
string The free-text content of the note (max 5000 characters) |
data. |
object or null Identifies who created the note. The
|
data. |
string Discriminator for the actor type. |
data. |
string (uuid) UUID of the user or API key that created the note. |
data. |
string Username of the portal user. Present only when |
data. |
string Label of the API key. Present only when |
data. |
boolean When true, the note is an immutable audit-trail entry and cannot be edited or deleted by any actor through any channel. PATCH and DELETE requests against an immutable note return 403. |
data. |
string (uuid) UUID of the entity this note is attached to |
data. |
string (uuid) UUID of the program the entity belongs to |
data. |
string (uuid) or null UUID of the event this note is attached to, if any. Notes created via the
Events PATCH endpoint with a |
data. |
string (date-time) or null ISO 8601 timestamp at which the note was archived in the portal (null if not archived) |
data. |
string (date-time) |
data. |
string (date-time) |
api_reference |
string (uuid) |
Conflict - a request with this Idempotency-Key is currently being processed
application/json
| Field | Description |
|---|---|
message |
string |
Idempotency-Key was reused with a different request body
application/json
| Field | Description |
|---|---|
message |
string |