/api/v1/message
GET /message — List all messages.
Returns every stored message (no per-user filter), ordered by
_id ascending. Requires the system.message system right.
Access token in the Authorization header:
Authorization: Bearer <token>.
Maximum number of messages to return. Results are ordered by
_id ascending.
1000Number of leading messages to skip (for paging).
0Array of messages.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
No authenticated user. The request must carry a valid access token.
The authenticated user lacks the system.message system right
(and is not system.root). The response carries
code: SystemRightRequired (package acl).
POST /message — Create or update one or more messages.
Each array element is upserted by message._version: send
_version: 1 to create a new message; send the stored version + 1
together with message._id to update an existing one (a mismatch
returns VersionMismatch, 400). A save replaces the message's
_groups set with the one supplied (an omitted/empty _groups
clears it). Allowed in read-only mode.
Access token in the Authorization header:
Authorization: Bearer <token>.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
The messages were created or updated.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
The request could not be processed. Possible causes: an unparseable
body or other generic failure (code: ServerGeneric); an update
whose _version is not the stored version + 1 (code: VersionMismatch); a start_time after the end_time (code: StartTimeAfterEndTime); or a _groups entry referencing a group
(by reference) that does not exist (code: LookupNotFound).
No authenticated user. The request must carry a valid access token.
The authenticated user lacks the system.message system right
(and is not system.root). The response carries
code: SystemRightRequired (package acl).
PUT /message — Create or update one or more messages (alias for POST).
Identical to POST /message: the same handler decodes the body
and upserts each element by message._version.
Access token in the Authorization header:
Authorization: Bearer <token>.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
The messages were created or updated.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
The request could not be processed. Possible causes: an unparseable
body or other generic failure (code: ServerGeneric); an update
whose _version is not the stored version + 1 (code: VersionMismatch); a start_time after the end_time (code: StartTimeAfterEndTime); or a _groups entry referencing a group
(by reference) that does not exist (code: LookupNotFound).
No authenticated user. The request must carry a valid access token.
The authenticated user lacks the system.message system right
(and is not system.root). The response carries
code: SystemRightRequired (package acl).
GET /message/{id} — Retrieve a single message by id.
Returns the matching message wrapped in a one-element array (the same handler shape as the list endpoint), not a bare object.
Access token in the Authorization header:
Authorization: Bearer <token>.
The message's _id.
A one-element array containing the message.
An internal message addressed to one or more user groups. Used by fylr to display admin notifications, maintenance announcements and release notes inside the front end.
Fixed marker identifying this object as a message.
No authenticated user. The request must carry a valid access token.
The authenticated user lacks the system.message system right
(and is not system.root). The response carries
code: SystemRightRequired (package acl).
The message id in the URL does not match any stored message.
The response carries code: MessageNotFound (package
message).
DELETE /message/{id} — Delete a message by id.
Access token in the Authorization header:
Authorization: Bearer <token>.
The message was deleted.
No authenticated user. The request must carry a valid access token.
The authenticated user lacks the system.message system right
(and is not system.root). The response carries
code: SystemRightRequired (package acl).
The message id in the URL does not match any stored message.
The response carries code: MessageNotFound (package
message).
Last updated