put https://message-dev.aylanetworks.com/messageservice/v1/destinations/.json
This API updates the specified message destination.
{
"destination": {
"body": "Message update",
"message_template_id": "TestTemplateId",
"deliver_to": "[email protected]",
"title": "Hello Ayla User",
"contact_id": null,
"provider": "smtp",
"repeat_freq": 30,
"user_message": "Hello Ayla User",
"user_name": "Tom",
"type": "email"
}
}
{
"destination": {
"type": "sms",
"body": "Leak detector battery is low.",
"country_code": "+91",
"deliver_to": "9100008888",
"repeat_freq": 30,
"provider": "twilio"
}
}
{
"destination": {
"type": "push",
"app_id": "app_595860_0-sA-id",
"body": "Leak detector battery is low.",
"deliver_to": "18610E3F420EA0BAB6C2490B872DADB77BB3BAC80FC9A529FF48C2ADE28EC892",
"meta_data": "push meta data",
"provider": "fcm",
"repeat_freq": 30,
"sound": "chime",
"title": "Aura-App Notification"
}
}