POST api/MobileDevice/RegisterDevice

Registers smart phone or tablet to get push notifications.

Request Information

URI Parameters

None.

Body Parameters

RegisterDevicePost
NameDescriptionTypeAdditional information
DeviceId

(Required) The ID string of the device. Max length is 256 chars.

string

None.

Platform

(Required) Android, iOS, ...

ClientInstancePlatformEnum

None.

NotificationLanguage

(Required) Requested language of notifications

LanguageEnum

None.

NotificationTypes

(Required) The list of notification types to send. At least one must be selected, otherwise no notification will be sent.

Collection of GeneralNotificationTypeEnum

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceId": "DEVICE REGISTRATION ID HERE",
  "Platform": 1,
  "NotificationLanguage": 2,
  "NotificationTypes": [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8
  ]
}

application/xml, text/xml

Sample:
<RegisterDevicePost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts">
  <DeviceId>DEVICE REGISTRATION ID HERE</DeviceId>
  <NotificationLanguage>cs</NotificationLanguage>
  <NotificationTypes xmlns:d2p1="http://schemas.datacontract.org/2004/07/Requestor.Domain.Enumerations">
    <d2p1:GeneralNotificationTypeEnum>NewComment</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>EditComment</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>NewTicket</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>TicketChange</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>DeadlineWarning</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>Invitation</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>SlaEscalation</d2p1:GeneralNotificationTypeEnum>
    <d2p1:GeneralNotificationTypeEnum>Mention</d2p1:GeneralNotificationTypeEnum>
  </NotificationTypes>
  <Platform>Android</Platform>
</RegisterDevicePost>

Response Information

Resource Description

IHttpActionResult

None.