POST staff/customer/edit

Request Information

URI Parameters

None.

Body Parameters

Request_Customer_CU
NameDescriptionTypeAdditional information
id

integer

Required

full_name

string

Required

birthday

string

Required

email

string

Required

address

string

Required

full_address

string

Required

phone

string

Required

phone2

string

Required

phone3

string

Required

gender

boolean

Required

id_commune

integer

Required

id_number

string

Required

issued_date

string

Required

issued_place

string

Required

is_company

boolean

Required

contact_name

string

Required

contact_phone

string

Required

front_image

string

Required

back_image

string

Required

token

string

Required

secret_key

string

Required

id_staff_action

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "full_name": "sample string 2",
  "birthday": "sample string 3",
  "email": "sample string 4",
  "address": "sample string 5",
  "full_address": "sample string 6",
  "phone": "sample string 7",
  "phone2": "sample string 8",
  "phone3": "sample string 9",
  "gender": true,
  "id_commune": 11,
  "id_number": "sample string 12",
  "issued_date": "sample string 13",
  "issued_place": "sample string 14",
  "is_company": true,
  "contact_name": "sample string 15",
  "contact_phone": "sample string 16",
  "front_image": "sample string 17",
  "back_image": "sample string 18",
  "token": "sample string 19",
  "secret_key": "sample string 20",
  "id_staff_action": 21
}

application/xml, text/xml

Sample:
<Request_Customer_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Dictionary.Request">
  <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">21</id_staff_action>
  <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 20</secret_key>
  <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 19</token>
  <address>sample string 5</address>
  <back_image>sample string 18</back_image>
  <birthday>sample string 3</birthday>
  <contact_name>sample string 15</contact_name>
  <contact_phone>sample string 16</contact_phone>
  <email>sample string 4</email>
  <front_image>sample string 17</front_image>
  <full_address>sample string 6</full_address>
  <full_name>sample string 2</full_name>
  <gender>true</gender>
  <id>1</id>
  <id_commune>11</id_commune>
  <id_number>sample string 12</id_number>
  <is_company>true</is_company>
  <issued_date>sample string 13</issued_date>
  <issued_place>sample string 14</issued_place>
  <phone>sample string 7</phone>
  <phone2>sample string 8</phone2>
  <phone3>sample string 9</phone3>
</Request_Customer_CU>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Request_Customer_CU'.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
status

integer

None.

error_code

string

None.

content

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "status": 1,
  "error_code": "sample string 2",
  "content": {}
}

application/xml, text/xml

Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">
  <content />
  <error_code>sample string 2</error_code>
  <status>1</status>
</Result>