POST api/categories/UpdateCategories?id={id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
Required |
Body Parameters
CategoriesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| name | string |
None. |
|
| description | string |
None. |
|
| imageurl | string |
None. |
|
| parentid | integer |
None. |
|
| createdat | date |
None. |
|
| updatedat | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"name": "sample string 2",
"description": "sample string 3",
"imageurl": "sample string 4",
"parentid": 1,
"createdat": "2025-12-20T08:40:11.5179952+03:00",
"updatedat": "2025-12-20T08:40:11.5179952+03:00"
}
application/xml, text/xml
Sample:
<CategoriesDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs"> <CreatedAt>2025-12-20T08:40:11.5179952+03:00</CreatedAt> <Description>sample string 3</Description> <ID>1</ID> <ImageUrl>sample string 4</ImageUrl> <Name>sample string 2</Name> <ParentID>1</ParentID> <UpdatedAt>2025-12-20T08:40:11.5179952+03:00</UpdatedAt> </CategoriesDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseModelOfCategoriesDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | CategoriesDTO |
None. |
|
| Success | boolean |
None. |
|
| StatusCode | integer |
None. |
|
| Message | string |
None. |
|
| ErrorMessage | string |
None. |
|
| Metadata | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"id": 1,
"name": "sample string 2",
"description": "sample string 3",
"imageurl": "sample string 4",
"parentid": 1,
"createdat": "2025-12-20T08:40:11.5189944+03:00",
"updatedat": "2025-12-20T08:40:11.5189944+03:00"
},
"Success": true,
"StatusCode": 2,
"Message": "sample string 3",
"ErrorMessage": "sample string 4",
"Metadata": {}
}
application/xml, text/xml
Sample:
<ResponseModelOfCategoriesDTOb1afPy6h xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/cbox_api.Models.Response">
<ErrorMessage>sample string 4</ErrorMessage>
<Message>sample string 3</Message>
<Metadata />
<StatusCode>2</StatusCode>
<Success>true</Success>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/cbox_api.Models.DTOs">
<d2p1:CreatedAt>2025-12-20T08:40:11.5189944+03:00</d2p1:CreatedAt>
<d2p1:Description>sample string 3</d2p1:Description>
<d2p1:ID>1</d2p1:ID>
<d2p1:ImageUrl>sample string 4</d2p1:ImageUrl>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:ParentID>1</d2p1:ParentID>
<d2p1:UpdatedAt>2025-12-20T08:40:11.5189944+03:00</d2p1:UpdatedAt>
</Data>
</ResponseModelOfCategoriesDTOb1afPy6h>