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": "b8874e54-1dec-4de4-ae74-580290a0ab7b",
"UpdatedId": "4f34853f-6d8e-4767-876e-cf6485edbe02",
"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>b8874e54-1dec-4de4-ae74-580290a0ab7b</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>4f34853f-6d8e-4767-876e-cf6485edbe02</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": "f98671d7-d385-45c3-9a85-57a1a5cbb968",
"CreatedTime": "2026-04-14T21:48:26.596528+07:00",
"UpdatedTime": "2026-04-14T21:48:26.596528+07:00",
"CreatedId": "e74c47d1-5b78-47c9-af73-ed02170ea5e9",
"UpdatedId": "d19a6f1c-7fec-4dc2-bac1-077a64657f34",
"IsDeleted": true,
"DeletedTime": "2026-04-14T21:48:26.597565+07:00",
"DeletedId": "c01d5538-1ba3-4e9b-b7ee-95040dcee8b5",
"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>f98671d7-d385-45c3-9a85-57a1a5cbb968</AnhBiaId> <CreatedId>e74c47d1-5b78-47c9-af73-ed02170ea5e9</CreatedId> <CreatedTime>2026-04-14T21:48:26.596528+07:00</CreatedTime> <DeletedId>c01d5538-1ba3-4e9b-b7ee-95040dcee8b5</DeletedId> <DeletedTime>2026-04-14T21:48:26.597565+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>d19a6f1c-7fec-4dc2-bac1-077a64657f34</UpdatedId> <UpdatedTime>2026-04-14T21:48:26.596528+07:00</UpdatedTime> </CategoryDto>