POST api/loaihang/SuaLoaiMatHang
Sửa loại mặt hàng Header truyền vào token API có kiểm tra quyền của tk với chức năng thêm xóa sửa Loại Hàng /// IdLoaiHang để test 7626
Request Information
URI Parameters
None.
Body Parameters
LoaiHangAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| IDLoaiMatHang | integer |
None. |
|
| TenLoaiMatHang | string |
None. |
|
| IDCha | integer |
None. |
|
| IDLoaiRef | integer |
None. |
|
| GhiChu | string |
None. |
|
| MoTaLMH | string |
None. |
|
| DoUuTien | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"IDLoaiMatHang": 1,
"TenLoaiMatHang": "sample string 2",
"IDCha": 3,
"IDLoaiRef": 4,
"GhiChu": "sample string 5",
"MoTaLMH": "sample string 6",
"DoUuTien": 7
}
application/xml, text/xml
Sample:
<LoaiHangAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models"> <DoUuTien>7</DoUuTien> <GhiChu>sample string 5</GhiChu> <IDCha>3</IDCha> <IDLoaiMatHang>1</IDLoaiMatHang> <IDLoaiRef>4</IDLoaiRef> <MoTaLMH>sample string 6</MoTaLMH> <TenLoaiMatHang>sample string 2</TenLoaiMatHang> </LoaiHangAdd>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseModelOfLoaiHangAdd| Name | Description | Type | Additional information |
|---|---|---|---|
| status | integer |
None. |
|
| data | LoaiHangAdd |
None. |
|
| page | LoaiHangAdd |
None. |
|
| error | ErrorModel |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 1,
"data": {
"IDLoaiMatHang": 1,
"TenLoaiMatHang": "sample string 2",
"IDCha": 3,
"IDLoaiRef": 4,
"GhiChu": "sample string 5",
"MoTaLMH": "sample string 6",
"DoUuTien": 7
},
"page": {
"IDLoaiMatHang": 1,
"TenLoaiMatHang": "sample string 2",
"IDCha": 3,
"IDLoaiRef": 4,
"GhiChu": "sample string 5",
"MoTaLMH": "sample string 6",
"DoUuTien": 7
},
"error": {
"message": "sample string 1",
"code": "sample string 2"
}
}
application/xml, text/xml
Sample:
<BaseModelOfLoaiHangAddjeglP0QM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_KD.Models">
<data>
<DoUuTien>7</DoUuTien>
<GhiChu>sample string 5</GhiChu>
<IDCha>3</IDCha>
<IDLoaiMatHang>1</IDLoaiMatHang>
<IDLoaiRef>4</IDLoaiRef>
<MoTaLMH>sample string 6</MoTaLMH>
<TenLoaiMatHang>sample string 2</TenLoaiMatHang>
</data>
<error>
<code>sample string 2</code>
<message>sample string 1</message>
</error>
<page>
<DoUuTien>7</DoUuTien>
<GhiChu>sample string 5</GhiChu>
<IDCha>3</IDCha>
<IDLoaiMatHang>1</IDLoaiMatHang>
<IDLoaiRef>4</IDLoaiRef>
<MoTaLMH>sample string 6</MoTaLMH>
<TenLoaiMatHang>sample string 2</TenLoaiMatHang>
</page>
<status>1</status>
</BaseModelOfLoaiHangAddjeglP0QM>