CoworkerNotifications
Create CoworkerNotification
Create a new CoworkerNotification record.
POST
Create CoworkerNotification
A CoworkerNotification represents a push notification sent to a customer (coworker). Notifications are generated by the system in response to various events such as new blog posts, community messages, invoices, identity checks, and more. Notifications are read-only — they can be listed and retrieved but not created or modified via the API. TheDocumentation Index
Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
Use this file to discover all available pages before exploring further.
NotificationType field indicates the source event. Common values include:
| NotificationType | Meaning |
|---|---|
blog | New blog post published |
community-event | Community event update |
community-message | New community message |
community-thread | New community thread |
course | Course update |
coworkerinvoice | New invoice generated |
identitycheck-fail | Identity check failed |
identity-check-failed | Identity check failed (alternate) |
identity-check-success | Identity check succeeded |
identitycheck-success | Identity check succeeded (alternate) |
push-notification | Generic push notification |
reply-like | Someone liked a reply |
salto-locker | Salto locker event |
survey | Survey notification |
thread-like | Someone liked a thread |
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the
Authorization header.
The authenticated user must be a full unrestricted administrator or have the CoworkerNotification-Create role.Request Body
Required Fields
ID of the coworker linked to this record.
The notification message body displayed to the coworker.
The type of event that triggered this notification (e.g. blog, community-event, coworkerinvoice, push-notification).
The ID of the entity related to this notification (e.g. the blog post, invoice, or thread that triggered it).
Optional Fields
Whether the coworker has dismissed this notification.
Code Examples
Response
200
HTTP status code.
200 on success.A human-readable message confirming the creation.
Contains the
Id of the newly created record.true if the coworkernotification was created successfully.null on success.Example Response
400
A summary of the validation error(s), in the format
PropertyName: error message.null on validation failure.Array of validation errors.
false when the request fails validation.Example Response
Create CoworkerNotification