Notes
Write a note on an entity
Leaves a record on an entity of the account: why an order was rejected, how a repair is going.
notes:writeResult
generated from the schema
Server annotation
A note with mentionedUserIds notifies those Filmo users.
With subRelatedDocumentType and subRelatedDocumentId the note goes on a specific physical unit and not on the whole item. mentionedUserIds notifies those Filmo users. The notes of an entity are read with GET /api.
Arguments
Note text.
Limits: min length 1
When the note is about a specific physical unit of the item.
Identifier of that physical unit. Requires subRelatedDocumentType.
Code of the unit, so that it can be read in the note without resolving the id.
Filmo users to notify. Each one receives a notification.
Idempotency key chosen by the client (a UUID is recommended). Repeating the same key with the same arguments within 24 h returns the stored response without executing again; with different arguments it responds 422. It is the safe way to retry after a network failure.
Limits: min length 1, max length 255
Result
On success the result carries structuredContent with data and meta. These are the attributes of data.
Show the attributes of data
Unique identifier of the note.
Note text.
Type of the sub-entity; null if not applicable.
Identifier of the sub-entity; null if not applicable.
Human-readable code of the sub-entity; null if not applicable.
Creation date in ISO 8601 UTC.
Last modification date in ISO 8601 UTC.
An error is a result with isError: true and the problem in content[0].; there is no structuredContent. See Errors.
Sample prompts
Leave a note on this order saying the customer will pick up at the north door.
The same operation by REST
This tool runs POST /api/v1/notes.
Related pages
Link to this section: Related pagesNotes
Write a note on an entity
Leaves a record on an entity of the account: why an order was rejected, how a repair is going.
Guides
Safe writes
An assistant that can write can also write the wrong thing. Decide which tools need a person, retry without duplicating, and know what a write sets in motion.
Guides
Errors
A tool error is a result with
isError: trueand the problem in the first text block. Branch on itscode.
Was this page helpful?