POST api/SubscribePushNotifications

Request Information

URI Parameters

None.

Body Parameters

SubscribeNotificationDTO
NameDescriptionTypeAdditional information
DeviceId

string

None.

Token

string

None.

SessionId

string

None.

Licence

string

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": "sample string 1",
  "Token": "sample string 2",
  "SessionId": "sample string 3",
  "Licence": "sample string 4"
}

application/xml, text/xml

Sample:
<SubscribeNotificationDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceCenter.API.DTO.Flat">
  <DeviceId>sample string 1</DeviceId>
  <Licence>sample string 4</Licence>
  <SessionId>sample string 3</SessionId>
  <Token>sample string 2</Token>
</SubscribeNotificationDTO>

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 'SubscribeNotificationDTO'.

Response Information

Resource Description

ResponseInfoFlat
NameDescriptionTypeAdditional information
ErrorNumber

integer

None.

ErrorMessage

string

None.

ActionResult

boolean

None.

ResultMessage

string

None.

Result

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorNumber": 1,
  "ErrorMessage": "sample string 2",
  "ActionResult": true,
  "ResultMessage": "sample string 4",
  "Result": {}
}

application/xml, text/xml

Sample:
<ResponseInfoFlat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ServiceCenter.API.DTO.Flat">
  <ActionResult>true</ActionResult>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorNumber>1</ErrorNumber>
  <Result />
  <ResultMessage>sample string 4</ResultMessage>
</ResponseInfoFlat>