POST api/v1/notifications/push

Envia um push notification para todos os devices do dono da matricula

Request Information

URI Parameters

None.

Requires Authorization!

Roles:

Body Parameters

SendPushNotificationDto
NameDescriptionTypeAdditional information
Company

string

None.

Enrollment

integer

None.

Title

string

None.

Message

string

None.

NotificationClass

NotificationClass

None.

Request Formats

application/json, text/json

Sample:
{
  "Company": "sample string 1",
  "Enrollment": 2,
  "Title": "sample string 3",
  "Message": "sample string 4",
  "NotificationClass": "Security"
}

application/xml, text/xml

Sample:
<SendPushNotificationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Lar.SicopPlus.Entities.DTOs">
  <Company>sample string 1</Company>
  <Enrollment>2</Enrollment>
  <Message>sample string 4</Message>
  <NotificationClass>Security</NotificationClass>
  <Title>sample string 3</Title>
</SendPushNotificationDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SendPushNotificationDto'.

Response Information

Resource Description

string

Response 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>