POST api/Person/SaveDeviceMaster

Save user information [private interfaces]

Request Information

Body Parameters

SaveDeviceMasterInfo
NameDescriptionTypeAdditional information
Info

User information

DeviceMasterInfo

None.

Token

Get it after logging in Token

string

None.

Language

Language Option

string

None.

AppId

APP Application Identifier

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Info": {
    "DeviceId": "sample string 1",
    "UserId": 2,
    "Gender": true,
    "Pic": "sample string 4",
    "FullName": "sample string 5",
    "BloodGroup": "sample string 6",
    "Genotype": "sample string 7",
    "MajorIllness": "sample string 8",
    "Allergies": "sample string 9",
    "LGA": "sample string 10",
    "TourOperator": "sample string 11",
    "NIN": "sample string 12",
    "PassportNumber": "sample string 13",
    "Sim": "sample string 14",
    "MasterPhone": "sample string 15",
    "ActiveDate": "2018-10-22T01:24:36.7374057+08:00",
    "Id": 17,
    "dId": 18,
    "Password": "sample string 19",
    "FlightNo": "sample string 20"
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<SaveDeviceMasterInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 3</AppId>
  <Language>sample string 2</Language>
  <Token>sample string 1</Token>
  <Info xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.Entity.Entity">
    <d2p1:ActiveDate>2018-10-22T01:24:36.7374057+08:00</d2p1:ActiveDate>
    <d2p1:Allergies>sample string 9</d2p1:Allergies>
    <d2p1:BloodGroup>sample string 6</d2p1:BloodGroup>
    <d2p1:DeviceId>sample string 1</d2p1:DeviceId>
    <d2p1:FlightNo>sample string 20</d2p1:FlightNo>
    <d2p1:FullName>sample string 5</d2p1:FullName>
    <d2p1:Gender>true</d2p1:Gender>
    <d2p1:Genotype>sample string 7</d2p1:Genotype>
    <d2p1:Id>17</d2p1:Id>
    <d2p1:LGA>sample string 10</d2p1:LGA>
    <d2p1:MajorIllness>sample string 8</d2p1:MajorIllness>
    <d2p1:MasterPhone>sample string 15</d2p1:MasterPhone>
    <d2p1:NIN>sample string 12</d2p1:NIN>
    <d2p1:PassportNumber>sample string 13</d2p1:PassportNumber>
    <d2p1:Password>sample string 19</d2p1:Password>
    <d2p1:Pic>sample string 4</d2p1:Pic>
    <d2p1:Sim>sample string 14</d2p1:Sim>
    <d2p1:TourOperator>sample string 11</d2p1:TourOperator>
    <d2p1:UserId>2</d2p1:UserId>
    <d2p1:dId>18</d2p1:dId>
  </Info>
</SaveDeviceMasterInfo>

Response Information

Resource Description

Statestatus code:
0. Indicates success
1100. indicates device does not exist
4000. Says failure

SaveDeviceMasterInfoResult
NameDescriptionTypeAdditional information
State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "State": 1
}

application/xml, text/xml

Sample:
<SaveDeviceMasterInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>1</State>
</SaveDeviceMasterInfoResult>