Customers actions
Set the customer's push notifications
Set up customer push notifications for a specific application and device.
Registers a push notification token (Apple or Android) for a customer account and links it to the specified external application and device ID. This enables the CareCloud platform to send push notifications to the customer's device. If a token is already registered for the same device ID, it is replaced.
To unregister a device, use POST /customers/actions/cancel-push-notifications (enterprise interface only).
⚠️ The endpoint is available only in the Enterprise interface. ⚠️ Please make sure the ID of the device is unique. You will avoid problems with signing off other devices.
post/customers/actions/set-push-notifications
Request body
Example request
{
"customer_id": "8ea2591121e636086a4a9c0992",
"device": {
"device_id": "00000000-89ABCDEF-01234567-89ABCDEF",
"device_system": "OSX",
"device_name": "Test device",
"device_type": "iPhone"
},
"external_application_id": "82de12eb8b138791e678fd11c3",
"push_token": "4f7f658bfa7a5959e093590"
}Response
No Content