POST api/Device/GroupRelationPersonProfile

Relationship and device information together with the display of public displays

Request Information

Body Parameters

GroupRelationPersonProfileModel
NameDescriptionTypeAdditional information
UserId

user id

integer

None.

GroupId

role id

integer

None.

DeviceId

device id

integer

None.

Info

overhead information

string

None.

RelationName

string

None.

RelationPhone

string

None.

Item

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:
{
  "UserId": 1,
  "GroupId": 2,
  "DeviceId": 3,
  "Info": "sample string 4",
  "RelationName": "sample string 5",
  "RelationPhone": "sample string 6",
  "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 7",
  "Language": "sample string 8",
  "AppId": "sample string 9"
}

application/xml, text/xml

Sample:
<GroupRelationPersonProfileModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 9</AppId>
  <Language>sample string 8</Language>
  <Token>sample string 7</Token>
  <DeviceId>3</DeviceId>
  <GroupId>2</GroupId>
  <Info>sample string 4</Info>
  <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>
  <RelationName>sample string 5</RelationName>
  <RelationPhone>sample string 6</RelationPhone>
  <UserId>1</UserId>
</GroupRelationPersonProfileModel>

Response Information

Resource Description

NormalResult
NameDescriptionTypeAdditional information
Message

Message [in most cases, the message can be used as a prompt]

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

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

application/xml, text/xml

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