POST api/Common/SubscribeForNotifications

Подписка на пуш уведомления

Request Information

URI Parameters

None.

Body Parameters

PushSubscriber
NameDescriptionTypeAdditional information
ClientId

Токен клиента

string

None.

DeviceId

Идентификатор устройства

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientId": "sample string 1",
  "DeviceId": "sample string 2"
}

text/html, multipart/form-data

Sample:
{"ClientId":"sample string 1","DeviceId":"sample string 2"}

application/xml, text/xml

Sample:
<PushSubscriber xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AGAT.TSSM.API.Models.Common">
  <ClientId>sample string 1</ClientId>
  <DeviceId>sample string 2</DeviceId>
</PushSubscriber>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Success Resource Description

IHttpActionResult

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json, text/html, multipart/form-data, application/xml, text/xml

Sample:

Sample not available.