POST api/notifications/devicetoken

Request Information

URI Parameters

None.

Body Parameters

SecurityUserDeviceDTO
NameDescriptionTypeAdditional information
SecurityUserDeviceId

globally unique identifier

None.

SecurityUserId

globally unique identifier

None.

DeviceId

string

None.

DeviceModel

string

None.

DevicePlatform

string

None.

DeviceVersion

string

None.

DeviceNotificationToken

string

None.

NotificationsEnabled

boolean

None.

DatetimeModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "SecurityUserDeviceId": "aa126b1b-219e-4edd-be1c-e5fa0dbc088c",
  "SecurityUserId": "798ace07-de52-4a6c-8a29-b54d78673834",
  "DeviceId": "sample string 3",
  "DeviceModel": "sample string 4",
  "DevicePlatform": "sample string 5",
  "DeviceVersion": "sample string 6",
  "DeviceNotificationToken": "sample string 7",
  "NotificationsEnabled": true,
  "DatetimeModified": "2025-05-07T00:20:48.1584481-05:00"
}

application/xml, text/xml

Sample:
<SecurityUserDeviceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DTO">
  <DatetimeModified>2025-05-07T00:20:48.1584481-05:00</DatetimeModified>
  <DeviceId>sample string 3</DeviceId>
  <DeviceModel>sample string 4</DeviceModel>
  <DeviceNotificationToken>sample string 7</DeviceNotificationToken>
  <DevicePlatform>sample string 5</DevicePlatform>
  <DeviceVersion>sample string 6</DeviceVersion>
  <NotificationsEnabled>true</NotificationsEnabled>
  <SecurityUserDeviceId>aa126b1b-219e-4edd-be1c-e5fa0dbc088c</SecurityUserDeviceId>
  <SecurityUserId>798ace07-de52-4a6c-8a29-b54d78673834</SecurityUserId>
</SecurityUserDeviceDTO>

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

Response Information

Resource Description

JsonResultOfBoolean
NameDescriptionTypeAdditional information
Content

boolean

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.