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": "a71cfada-e56c-4d03-8711-219d1a097a1d",
"UpdatedId": "83e3d6f0-e9d9-48c7-aa14-338db2b524d4",
"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>a71cfada-e56c-4d03-8711-219d1a097a1d</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>83e3d6f0-e9d9-48c7-aa14-338db2b524d4</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": "9981ad7b-d653-4f56-959d-e93c8f7ba2b4",
"CreatedTime": "2026-11-17T15:50:38.4191306+07:00",
"UpdatedTime": "2026-11-17T15:50:38.4191306+07:00",
"CreatedId": "839dd09b-71b0-4204-a87a-88de98662ce3",
"UpdatedId": "96e62c14-b948-4c35-a834-72383f30c005",
"IsDeleted": true,
"DeletedTime": "2026-11-17T15:50:38.4201316+07:00",
"DeletedId": "dfb7467c-8ff2-4483-a4cd-a1c0f75ce45a",
"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>9981ad7b-d653-4f56-959d-e93c8f7ba2b4</AnhBiaId> <CreatedId>839dd09b-71b0-4204-a87a-88de98662ce3</CreatedId> <CreatedTime>2026-11-17T15:50:38.4191306+07:00</CreatedTime> <DeletedId>dfb7467c-8ff2-4483-a4cd-a1c0f75ce45a</DeletedId> <DeletedTime>2026-11-17T15:50:38.4201316+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>96e62c14-b948-4c35-a834-72383f30c005</UpdatedId> <UpdatedTime>2026-11-17T15:50:38.4191306+07:00</UpdatedTime> </CategoryDto>