POST api/Contact/DelContact

删除联系人

Request Information

Body Parameters

ContactParModel
NameDescriptionTypeAdditional information
Name

string

None.

ImgBase64Data

string

None.

Id

根据id来判断添加修改,id小于等于0是添加

integer

None.

DeviceId

设备id

integer

None.

PhoneNum

string

None.

CreateTime

date

None.

IMEI

string

None.

ContactType

类型。目前只有白名单。固定传 1

integer

None.

UpdateType

修改类型,1是姓名,2是照片,3是都有

integer

None.

No

白名单编号

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

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": "2025-12-12T05:28:45.0949271+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>2025-12-12T05:28:45.0949271+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

消息 [大多数情况下可通过该消息做为提示语]

string

None.

State

状态码

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>