PUT api/Common/RegisterDeviceInfo

Request Information

URI Parameters

None.

Body Parameters

DeviceInfo
NameDescriptionTypeAdditional information
Id

integer

None.

DeviceType

string

None.

DeviceTokenId

string

Required

CustomerId

integer

Required

AppName

string

None.

UniqueId

globally unique identifier

None.

ContactId

integer

None.

OSVersion

string

None.

ModelNumber

string

None.

AppVersion

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

BadgeCount

integer

None.

CreatedDate

date

None.

LanguageId

integer

None.

PushAllowed

string

None.

ModifiedDate

date

None.

IsDeviceTokenActive

boolean

None.

DeviceTokenLength

integer

None.

IsPushAllow

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "DeviceType": "sample string 2",
  "DeviceTokenId": "sample string 3",
  "CustomerId": 4,
  "AppName": "sample string 5",
  "UniqueId": "b59090e8-8c47-4521-bb6f-0f6eff1f02fa",
  "ContactId": 1,
  "OSVersion": "sample string 7",
  "ModelNumber": "sample string 8",
  "AppVersion": "sample string 9",
  "Latitude": 1.0,
  "Longitude": 1.0,
  "BadgeCount": 10,
  "CreatedDate": "2026-01-14T18:37:34.4805227+00:00",
  "LanguageId": 12,
  "PushAllowed": "sample string 13",
  "ModifiedDate": "2026-01-14T18:37:34.4805227+00:00",
  "IsDeviceTokenActive": true,
  "DeviceTokenLength": 16,
  "IsPushAllow": true
}

application/xml, text/xml

Sample:
<DeviceInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
  <AppName>sample string 5</AppName>
  <AppVersion>sample string 9</AppVersion>
  <BadgeCount>10</BadgeCount>
  <ContactId>1</ContactId>
  <CreatedDate>2026-01-14T18:37:34.4805227+00:00</CreatedDate>
  <CustomerId>4</CustomerId>
  <DeviceTokenId>sample string 3</DeviceTokenId>
  <DeviceTokenLength>16</DeviceTokenLength>
  <DeviceType>sample string 2</DeviceType>
  <Id>1</Id>
  <IsDeviceTokenActive>true</IsDeviceTokenActive>
  <IsPushAllow>true</IsPushAllow>
  <LanguageId>12</LanguageId>
  <Latitude>1</Latitude>
  <Longitude>1</Longitude>
  <ModelNumber>sample string 8</ModelNumber>
  <ModifiedDate>2026-01-14T18:37:34.4805227+00:00</ModifiedDate>
  <OSVersion>sample string 7</OSVersion>
  <PushAllowed>sample string 13</PushAllowed>
  <UniqueId>b59090e8-8c47-4521-bb6f-0f6eff1f02fa</UniqueId>
</DeviceInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APICommonResponse
NameDescriptionTypeAdditional information
Status

boolean

None.

Message

string

None.

Data

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "Message": "sample string 2",
  "Data": "sample string 3"
}

application/xml, text/xml

Sample:
<APICommonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Tsunami.Model">
  <Data>sample string 3</Data>
  <Message>sample string 2</Message>
  <Status>true</Status>
</APICommonResponse>