POST api/notifications/sendbydevice?title={title}&body={body}
This method send a notification to a specific device
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
title |
title |
string |
Required |
body |
body or message |
string |
Required |
Body Parameters
Object
NotificationDataByDeviceName | Description | Type | Additional information |
---|---|---|---|
DeviceId | string |
None. |
|
Data | NotificationData |
None. |
Request Formats
application/json, text/json
Sample:
{ "DeviceId": "sample string 1", "Data": { "Service": "sample string 1", "Object": "sample string 2", "IdObject": "sample string 3", "FolderId": 4, "dateInit": "2025-04-04T01:33:38.4537239+01:00", "dateEnd": "2025-04-04T01:33:38.4537239+01:00", "Location": "sample string 5", "TypeAgenda": "sample string 6", "Role": "sample string 7", "Status": "sample string 8" } }
application/xml, text/xml
Sample:
<NotificationDataByDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GabineteDigital.Services.Models"> <Data> <FolderId>4</FolderId> <IdObject>sample string 3</IdObject> <Location>sample string 5</Location> <Object>sample string 2</Object> <Role>sample string 7</Role> <Service>sample string 1</Service> <Status>sample string 8</Status> <TypeAgenda>sample string 6</TypeAgenda> <dateEnd>2025-04-04T01:33:38.4537239+01:00</dateEnd> <dateInit>2025-04-04T01:33:38.4537239+01:00</dateInit> </Data> <DeviceId>sample string 1</DeviceId> </NotificationDataByDevice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>