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": "b84df229-a1c2-416f-9beb-9c9a22b64daf",
"UpdatedId": "74d1009b-d06d-488c-b779-d363e6958a66",
"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>b84df229-a1c2-416f-9beb-9c9a22b64daf</AnhBiaId> <Id>1</Id> <MoTa>sample string 2</MoTa> <Ten>sample string 3</Ten> <UpdatedId>74d1009b-d06d-488c-b779-d363e6958a66</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": "8382972b-7e9f-49e1-973b-1745a5ae8fae",
"CreatedTime": "2025-12-24T20:30:30.1920982+07:00",
"UpdatedTime": "2025-12-24T20:30:30.1920982+07:00",
"CreatedId": "4f3b0c7e-08cc-401e-b79f-8c5c16b208d3",
"UpdatedId": "0000a3f5-022c-4193-8fab-ec6922a34ad8",
"IsDeleted": true,
"DeletedTime": "2025-12-24T20:30:30.1920982+07:00",
"DeletedId": "2df3dc28-ad12-4492-a6d3-8f5fbf5bad52",
"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>8382972b-7e9f-49e1-973b-1745a5ae8fae</AnhBiaId> <CreatedId>4f3b0c7e-08cc-401e-b79f-8c5c16b208d3</CreatedId> <CreatedTime>2025-12-24T20:30:30.1920982+07:00</CreatedTime> <DeletedId>2df3dc28-ad12-4492-a6d3-8f5fbf5bad52</DeletedId> <DeletedTime>2025-12-24T20:30:30.1920982+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>0000a3f5-022c-4193-8fab-ec6922a34ad8</UpdatedId> <UpdatedTime>2025-12-24T20:30:30.1920982+07:00</UpdatedTime> </CategoryDto>