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": "6dfffcd9-5735-4a03-a116-20558ae83dd4",
"UpdatedId": "14cae386-6495-4c11-af06-a0628945135d",
"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>6dfffcd9-5735-4a03-a116-20558ae83dd4</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>14cae386-6495-4c11-af06-a0628945135d</UpdatedId> </UpdateCategoryRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
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": "c2e8c465-c081-417a-add8-9b58471a6a3c",
"CreatedTime": "2025-10-26T13:04:46.9445225+07:00",
"UpdatedTime": "2025-10-26T13:04:46.9445225+07:00",
"CreatedId": "0fed9db0-1695-42f3-9218-769096146425",
"UpdatedId": "7d4c8386-a893-4f4d-8b2d-5a33de795c86",
"IsDeleted": true,
"DeletedTime": "2025-10-26T13:04:46.9459263+07:00",
"DeletedId": "d8c596c6-11ef-4ed1-b1a8-98a59ea03a9f",
"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>c2e8c465-c081-417a-add8-9b58471a6a3c</AnhBiaId> <CreatedId>0fed9db0-1695-42f3-9218-769096146425</CreatedId> <CreatedTime>2025-10-26T13:04:46.9445225+07:00</CreatedTime> <DeletedId>d8c596c6-11ef-4ed1-b1a8-98a59ea03a9f</DeletedId> <DeletedTime>2025-10-26T13:04:46.9459263+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>7d4c8386-a893-4f4d-8b2d-5a33de795c86</UpdatedId> <UpdatedTime>2025-10-26T13:04:46.9445225+07:00</UpdatedTime> </CategoryDto>