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": "798ed2fa-a3b4-4995-ae20-0a83e8e19e69",
"UpdatedId": "49bcb063-8b29-46c0-9d71-88df70e22010",
"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>798ed2fa-a3b4-4995-ae20-0a83e8e19e69</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>49bcb063-8b29-46c0-9d71-88df70e22010</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": "2fa194c1-f974-492c-91a4-29abe06c6f7d",
"CreatedTime": "2026-04-14T19:37:07.7855511+07:00",
"UpdatedTime": "2026-04-14T19:37:07.7855511+07:00",
"CreatedId": "09cc2348-6ae3-4c52-ae41-9e1eb68f0d83",
"UpdatedId": "ff8b6ac5-85ef-4762-9c55-55983c06cd1b",
"IsDeleted": true,
"DeletedTime": "2026-04-14T19:37:07.7864292+07:00",
"DeletedId": "991bcffc-1e03-4c1e-97ca-80bfa0d297b2",
"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>2fa194c1-f974-492c-91a4-29abe06c6f7d</AnhBiaId> <CreatedId>09cc2348-6ae3-4c52-ae41-9e1eb68f0d83</CreatedId> <CreatedTime>2026-04-14T19:37:07.7855511+07:00</CreatedTime> <DeletedId>991bcffc-1e03-4c1e-97ca-80bfa0d297b2</DeletedId> <DeletedTime>2026-04-14T19:37:07.7864292+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>ff8b6ac5-85ef-4762-9c55-55983c06cd1b</UpdatedId> <UpdatedTime>2026-04-14T19:37:07.7855511+07:00</UpdatedTime> </CategoryDto>