POST api/notifications/send?userId={userId}&title={title}&body={body}
This method send a notification for all active device from a user
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userId |
User ID |
integer |
Required |
| title |
title |
string |
Required |
| body |
body or message |
string |
Required |
Body Parameters
Object
NotificationData| Name | Description | Type | Additional information |
|---|---|---|---|
| Service | string |
None. |
|
| Object | string |
None. |
|
| IdObject | string |
None. |
|
| FolderId | integer |
None. |
|
| dateInit | date |
None. |
|
| dateEnd | date |
None. |
|
| Location | string |
None. |
|
| TypeAgenda | string |
None. |
|
| Role | string |
None. |
|
| Status | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Service": "sample string 1",
"Object": "sample string 2",
"IdObject": "sample string 3",
"FolderId": 4,
"dateInit": "2025-12-06T05:24:42.465888+01:00",
"dateEnd": "2025-12-06T05:24:42.465888+01:00",
"Location": "sample string 5",
"TypeAgenda": "sample string 6",
"Role": "sample string 7",
"Status": "sample string 8"
}
application/xml, text/xml
Sample:
<NotificationData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GabineteDigital.Services.Models"> <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-12-06T05:24:42.465888+01:00</dateEnd> <dateInit>2025-12-06T05:24:42.465888+01:00</dateInit> </NotificationData>
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>