POST api/notifications/sendByUsernames?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
NotificationGroupName | Description | Type | Additional information |
---|---|---|---|
Users | Collection of string |
None. |
|
NotificationData | NotificationData |
None. |
Request Formats
application/json, text/json
Sample:
{ "Users": [ "sample string 1", "sample string 2" ], "NotificationData": { "Service": "sample string 1", "Object": "sample string 2", "IdObject": "sample string 3", "FolderId": 4, "dateInit": "2025-04-04T01:37:55.1001837+01:00", "dateEnd": "2025-04-04T01:37:55.1001837+01:00", "Location": "sample string 5", "TypeAgenda": "sample string 6", "Role": "sample string 7", "Status": "sample string 8" } }
application/xml, text/xml
Sample:
<NotificationGroup xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GabineteDigital.Services.Models"> <NotificationData> <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:37:55.1001837+01:00</dateEnd> <dateInit>2025-04-04T01:37:55.1001837+01:00</dateInit> </NotificationData> <Users xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </Users> </NotificationGroup>
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>