POST api/nguoilienhe/TaoNguoiLienHe

Tạo mới Người liên hệ

Request Information

URI Parameters

None.

Body Parameters

NguoiLienHeModel
NameDescriptionTypeAdditional information
IdCho

string

None.

IdChoOld

string

None.

Mobile

string

None.

MobileOld

string

None.

TenNguoiLienHe

string

None.

ChucVu

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IdCho": "sample string 1",
  "IdChoOld": "sample string 2",
  "Mobile": "sample string 3",
  "MobileOld": "sample string 4",
  "TenNguoiLienHe": "sample string 5",
  "ChucVu": "sample string 6"
}

application/xml, text/xml

Sample:
<NguoiLienHeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <ChucVu>sample string 6</ChucVu>
  <IdCho>sample string 1</IdCho>
  <IdChoOld>sample string 2</IdChoOld>
  <Mobile>sample string 3</Mobile>
  <MobileOld>sample string 4</MobileOld>
  <TenNguoiLienHe>sample string 5</TenNguoiLienHe>
</NguoiLienHeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseModelOfObject
NameDescriptionTypeAdditional information
status

integer

None.

data

Object

None.

page

Object

None.

error

ErrorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "data": {},
  "page": {},
  "error": {
    "message": "sample string 1",
    "code": "sample string 2"
  }
}

application/xml, text/xml

Sample:
<BaseModelOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
  <data />
  <error>
    <code>sample string 2</code>
    <message>sample string 1</message>
  </error>
  <page />
  <status>1</status>
</BaseModelOfanyType>