POST staff/vehicle_work_custom/create
Request Information
URI Parameters
None.
Body Parameters
Request_Vehicle_Work_Custom_CU| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
|
| id_work | integer |
Required |
|
| work_name | string |
Required |
|
| amount | decimal number |
Required |
|
| id_vehicle | integer |
Required |
|
| token | string |
Required |
|
| secret_key | string |
Required |
|
| id_staff_action | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"id_work": 2,
"work_name": "sample string 3",
"amount": 4.0,
"id_vehicle": 5,
"token": "sample string 6",
"secret_key": "sample string 7",
"id_staff_action": 8
}
application/xml, text/xml
Sample:
<Request_Vehicle_Work_Custom_CU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code.Directory.Models.Vehicle.Request"> <id_staff_action xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">8</id_staff_action> <secret_key xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 7</secret_key> <token xmlns="http://schemas.datacontract.org/2004/07/be_motosoft.Areas.Code">sample string 6</token> <amount>4</amount> <id>1</id> <id_vehicle>5</id_vehicle> <id_work>2</id_work> <work_name>sample string 3</work_name> </Request_Vehicle_Work_Custom_CU>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Result| Name | Description | Type | Additional 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>