POST api/Person/SavePersonProfile

Save the watch related object (staff) information [watch]

Request Information

Body Parameters

SavePersonModel
NameDescriptionTypeAdditional information
Item

personal information

PersonInfo

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:
{
  "Item": {
    "Birthday": "sample string 1",
    "DeviceID": 2,
    "Gender": 3,
    "School": "sample string 4",
    "Grade": "sample string 5",
    "Height": 6,
    "Nickname": "sample string 7",
    "UpdateTime": "sample string 8",
    "Weight": 9.0,
    "Avatar": "sample string 10",
    "UserId": 11,
    "Sim": "sample string 12",
    "Age": 13,
    "BloodType": "sample string 14",
    "CellPhone": "sample string 15",
    "CellPhone2": "sample string 16",
    "Address": "sample string 17",
    "Breed": "sample string 18",
    "IDnumber": "sample string 19",
    "Remark": "sample string 20",
    "MarkerColor": 21,
    "Area": "sample string 22",
    "Condition": "sample string 23",
    "Notes": "sample string 24",
    "Allergic": "sample string 25",
    "Drug": "sample string 26",
    "Organ": 27
  },
  "Token": "sample string 1",
  "Language": "sample string 2",
  "AppId": "sample string 3"
}

application/xml, text/xml

Sample:
<SavePersonModel 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>
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ViewModel">
    <d2p1:Address>sample string 17</d2p1:Address>
    <d2p1:Age>13</d2p1:Age>
    <d2p1:Allergic>sample string 25</d2p1:Allergic>
    <d2p1:Area>sample string 22</d2p1:Area>
    <d2p1:Avatar>sample string 10</d2p1:Avatar>
    <d2p1:Birthday>sample string 1</d2p1:Birthday>
    <d2p1:BloodType>sample string 14</d2p1:BloodType>
    <d2p1:Breed>sample string 18</d2p1:Breed>
    <d2p1:CellPhone>sample string 15</d2p1:CellPhone>
    <d2p1:CellPhone2>sample string 16</d2p1:CellPhone2>
    <d2p1:Condition>sample string 23</d2p1:Condition>
    <d2p1:DeviceID>2</d2p1:DeviceID>
    <d2p1:Drug>sample string 26</d2p1:Drug>
    <d2p1:Gender>3</d2p1:Gender>
    <d2p1:Grade>sample string 5</d2p1:Grade>
    <d2p1:Height>6</d2p1:Height>
    <d2p1:IDnumber>sample string 19</d2p1:IDnumber>
    <d2p1:MarkerColor>21</d2p1:MarkerColor>
    <d2p1:Nickname>sample string 7</d2p1:Nickname>
    <d2p1:Notes>sample string 24</d2p1:Notes>
    <d2p1:Organ>27</d2p1:Organ>
    <d2p1:Remark>sample string 20</d2p1:Remark>
    <d2p1:School>sample string 4</d2p1:School>
    <d2p1:Sim>sample string 12</d2p1:Sim>
    <d2p1:UpdateTime>sample string 8</d2p1:UpdateTime>
    <d2p1:UserId>11</d2p1:UserId>
    <d2p1:Weight>9</d2p1:Weight>
  </Item>
</SavePersonModel>

Response Information

Resource Description

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

SavePersonResult
NameDescriptionTypeAdditional information
Message

string

None.

AvatarUrl

head potraiturl

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Message": "sample string 1",
  "AvatarUrl": "sample string 2",
  "State": 3
}

application/xml, text/xml

Sample:
<SavePersonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>3</State>
  <AvatarUrl>sample string 2</AvatarUrl>
  <Message>sample string 1</Message>
</SavePersonResult>