POST api/Contact/AddContact

Save contacts

Request Information

Body Parameters

ContactParModel
NameDescriptionTypeAdditional information
Name

string

None.

ImgBase64Data

string

None.

Id

Add changes based on the id, which is less than or equal to 0

integer

None.

DeviceId

Device id

integer

None.

PhoneNum

string

None.

CreateTime

date

None.

IMEI

string

None.

ContactType

Type. There are only white lists. Fixed transfer 1

integer

None.

UpdateType

Change the type, 1 is the name, 2 is the photo, 3 is both

integer

None.

No

White list number

integer

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:
{
  "Name": "sample string 1",
  "ImgBase64Data": "sample string 2",
  "Id": 3,
  "DeviceId": 4,
  "PhoneNum": "sample string 5",
  "CreateTime": "2018-12-19T14:33:03.8742969+08:00",
  "IMEI": "sample string 7",
  "ContactType": 8,
  "UpdateType": 9,
  "No": 10,
  "Token": "sample string 11",
  "Language": "sample string 12",
  "AppId": "sample string 13"
}

application/xml, text/xml

Sample:
<ContactParModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 13</AppId>
  <Language>sample string 12</Language>
  <Token>sample string 11</Token>
  <ContactType>8</ContactType>
  <CreateTime>2018-12-19T14:33:03.8742969+08:00</CreateTime>
  <DeviceId>4</DeviceId>
  <IMEI>sample string 7</IMEI>
  <Id>3</Id>
  <ImgBase64Data>sample string 2</ImgBase64Data>
  <Name>sample string 1</Name>
  <No>10</No>
  <PhoneNum>sample string 5</PhoneNum>
  <UpdateType>9</UpdateType>
</ContactParModel>

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>