POST api/thietbi/CapNhatThietBi
Cập nhật thiết bị bên bán hàng trc rồi mới cập nhật bên Hrm
Request Information
URI Parameters
None.
Body Parameters
ThietBiModel| Name | Description | Type | Additional information |
|---|---|---|---|
| IdCho | integer |
None. |
|
| IdThietBi | integer |
None. |
|
| TenThietBi | string |
None. |
|
| DonGia | decimal number |
None. |
|
| Loai | string |
None. |
|
| TenLoai | string |
None. |
|
| KichThuoc | string |
None. |
|
| ViTri | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IdCho": 1,
"IdThietBi": 2,
"TenThietBi": "sample string 3",
"DonGia": 4.1,
"Loai": "sample string 5",
"TenLoai": "sample string 6",
"KichThuoc": "sample string 7",
"ViTri": 8
}
application/xml, text/xml
Sample:
<ThietBiModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DonGia>4.1</DonGia> <IdCho>1</IdCho> <IdThietBi>2</IdThietBi> <KichThuoc>sample string 7</KichThuoc> <Loai>sample string 5</Loai> <TenLoai>sample string 6</TenLoai> <TenThietBi>sample string 3</TenThietBi> <ViTri>8</ViTri> </ThietBiModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfObject| Name | Description | Type | Additional 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>