Send
The Send option is responsible to manage all the params that it can be set to a notification. It checks in which platforms the message can be send and to which users, also it stores the notification to the right queue/s and sends a positive response to the agent if it can be send. Then, the Workers does the rest of the work.
Routes
/send
Sends a notification to the target given its params.
| Params | Type | Required? | Description |
|---|---|---|---|
| message | string | true | Notification message |
| theme | string | true | Theme name refering which type of notification is |
| user_id | int | false | User identification if the notification is unicast |
| channel | int | false | Channel identification if the notification is multicast |
| subject | string | false | Subject customization instead of using the default value |
| delay | int | false (max value 3600 seconds) | Delay time in seconds of the notification |
| time_to_live | int | false (default 86400 seconds) | Time to live of a notification. Used to prevent send outdated notifications if the workers are stopped and not executed again. |
Response
{
"result": true
}
Updated less than a minute ago