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": "d105ea7d-6a02-4104-bff7-1e35879ee2f3",
"UpdatedId": "3fb9ba60-85f4-4bd5-8620-61f4bb93650e",
"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>d105ea7d-6a02-4104-bff7-1e35879ee2f3</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>3fb9ba60-85f4-4bd5-8620-61f4bb93650e</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": "96ed2a3b-4753-4662-9e07-252113ef3e41",
"CreatedTime": "2026-04-21T17:22:40.5519463+07:00",
"UpdatedTime": "2026-04-21T17:22:40.5519463+07:00",
"CreatedId": "d7bb0ba0-2ed7-4b69-a189-78dad83d8a2d",
"UpdatedId": "820b0fda-300b-40ce-a071-b720c5f73728",
"IsDeleted": true,
"DeletedTime": "2026-04-21T17:22:40.552899+07:00",
"DeletedId": "5373fe04-0e3e-4641-84da-9c1cfeb2b293",
"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>96ed2a3b-4753-4662-9e07-252113ef3e41</AnhBiaId> <CreatedId>d7bb0ba0-2ed7-4b69-a189-78dad83d8a2d</CreatedId> <CreatedTime>2026-04-21T17:22:40.5519463+07:00</CreatedTime> <DeletedId>5373fe04-0e3e-4641-84da-9c1cfeb2b293</DeletedId> <DeletedTime>2026-04-21T17:22:40.552899+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>820b0fda-300b-40ce-a071-b720c5f73728</UpdatedId> <UpdatedTime>2026-04-21T17:22:40.5519463+07:00</UpdatedTime> </CategoryDto>