notifications
Send batch notifications
Changed onSend the same push notification to multiple users. Admin, coordinator, developer, clinical director, or social media manager. The send is recorded in the CRM notification history (GET /notification-campaigns).
post/api/notifications/send-batch
Request
- Base URL: https://api.corabea.it (the document declares no server; this is the origin it was published from)
- URL: https://api.corabea.it/api/notifications/send-batch
- Auth: HTTP bearer
Request body
Example request
{
"active_only": true,
"body": "Controlla i nuovi contenuti in app",
"data": {
"show_in_foreground": "true",
"type": "general"
},
"notification_metadata": {
"campaign": "crm_bulk_send"
},
"notification_type": "general",
"title": "Promemoria",
"user_ids": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614174001"
]
}Response
Successful Response
Example response
{
"failed_users": 1,
"failure_count": 1,
"processed_users": 2,
"results": [
{
"failure_count": 0,
"success": true,
"success_count": 2,
"total_devices": 2,
"user_id": "123e4567-e89b-12d3-a456-426614174000"
},
{
"failure_count": 1,
"success": false,
"success_count": 1,
"total_devices": 2,
"user_id": "123e4567-e89b-12d3-a456-426614174001"
}
],
"success_count": 3,
"successful_users": 1,
"total_devices": 4,
"total_users": 2
}Changes
- info
added the new
communityenum value to the request property
- info
- info
added the new
clinical_documentenum value to the request property
- info