POST api/Account/RegisterDevice

Request Information

URI Parameters

None.

Body Parameters

DeviceRegisterDto
NameDescriptionTypeAdditional information
DeviceRegisterId

integer

None.

UserAccountId

integer

None.

CreatedDate

date

None.

DeviceType

byte

None.

DeviceId

string

None.

FCMToken

string

None.

RecordStatus

byte

None.

UserAccountDto

UserAccountDto

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceRegisterId": 1,
  "UserAccountId": 2,
  "CreatedDate": "2026-04-22T15:55:49.5905243+05:30",
  "DeviceType": 64,
  "DeviceId": "sample string 5",
  "FCMToken": "sample string 6",
  "RecordStatus": 64,
  "UserAccountDto": {
    "UserAccountId": 1,
    "MobileNumber": "sample string 2",
    "Name": "sample string 3",
    "Password": "sample string 4",
    "Email": "sample string 5",
    "UserType": 64,
    "Status": 64,
    "CreatedDate": "2026-04-22T15:55:49.5905243+05:30",
    "CountryCode": "sample string 9",
    "Country": "sample string 10",
    "ModifiedDate": "2026-04-22T15:55:49.5905243+05:30",
    "UserTypeEnum": 64
  }
}

application/xml, text/xml

Sample:
<DeviceRegisterDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Parihaar.Models">
  <CreatedDate>2026-04-22T15:55:49.5905243+05:30</CreatedDate>
  <DeviceId>sample string 5</DeviceId>
  <DeviceRegisterId>1</DeviceRegisterId>
  <DeviceType>64</DeviceType>
  <FCMToken>sample string 6</FCMToken>
  <RecordStatus>64</RecordStatus>
  <UserAccountDto>
    <Country>sample string 10</Country>
    <CountryCode>sample string 9</CountryCode>
    <CreatedDate>2026-04-22T15:55:49.5905243+05:30</CreatedDate>
    <Email>sample string 5</Email>
    <MobileNumber>sample string 2</MobileNumber>
    <ModifiedDate>2026-04-22T15:55:49.5905243+05:30</ModifiedDate>
    <Name>sample string 3</Name>
    <Password>sample string 4</Password>
    <Status>64</Status>
    <UserAccountId>1</UserAccountId>
    <UserType>64</UserType>
  </UserAccountDto>
  <UserAccountId>2</UserAccountId>
</DeviceRegisterDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.