POST api/Category/Update
Request Information
URI Parameters
None.
Body Parameters
UpdateCategoryRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| MoTa | string |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| UpdatedId | globally unique identifier |
None. |
|
| Ten | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"moTa": "sample string 2",
"anhBiaId": "16042d78-982f-4a36-9787-9880655855b4",
"updatedId": "2a5f1bc0-c61d-4176-9c5e-5bdf392ac04b",
"ten": "sample string 3"
}
application/xml, text/xml
Sample:
<UpdateCategoryRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Request.Category"> <AnhBiaId>16042d78-982f-4a36-9787-9880655855b4</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>2a5f1bc0-c61d-4176-9c5e-5bdf392ac04b</UpdatedId> </UpdateCategoryRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
CategoryDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| ParentId | integer |
None. |
|
| LoaiHinh | string |
None. |
|
| MoTa | string |
None. |
|
| AnhBiaId | globally unique identifier |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedTime | date |
None. |
|
| CreatedId | globally unique identifier |
None. |
|
| UpdatedId | globally unique identifier |
None. |
|
| IsDeleted | boolean |
None. |
|
| DeletedTime | date |
None. |
|
| DeletedId | globally unique identifier |
None. |
|
| Ten | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": 1,
"parentId": 2,
"loaiHinh": "sample string 3",
"moTa": "sample string 4",
"anhBiaId": "121fb5f3-7cb7-48d8-a0a3-6c15604c4b95",
"createdTime": "2026-11-27T01:55:37.3821731+07:00",
"updatedTime": "2026-11-27T01:55:37.3821731+07:00",
"createdId": "39bb1cea-1ce5-4eba-abb0-4b5bac8297a9",
"updatedId": "1a55d704-4110-4331-ab21-8ae0b96c663c",
"isDeleted": true,
"deletedTime": "2026-11-27T01:55:37.3821731+07:00",
"deletedId": "560ea189-4476-4475-a762-3d76beb3a192",
"ten": "sample string 6"
}
application/xml, text/xml
Sample:
<CategoryDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common.Model.Dto"> <AnhBiaId>121fb5f3-7cb7-48d8-a0a3-6c15604c4b95</AnhBiaId> <CreatedId>39bb1cea-1ce5-4eba-abb0-4b5bac8297a9</CreatedId> <CreatedTime>2026-11-27T01:55:37.3821731+07:00</CreatedTime> <DeletedId>560ea189-4476-4475-a762-3d76beb3a192</DeletedId> <DeletedTime>2026-11-27T01:55:37.3821731+07:00</DeletedTime> <Id>1</Id> <IsDeleted>true</IsDeleted> <LoaiHinh>sample string 3</LoaiHinh> <MoTa>sample string 4</MoTa> <ParentId>2</ParentId> <Ten>sample string 6</Ten> <UpdatedId>1a55d704-4110-4331-ab21-8ae0b96c663c</UpdatedId> <UpdatedTime>2026-11-27T01:55:37.3821731+07:00</UpdatedTime> </CategoryDto>