Light Mode
Update Category
PUT
/categories/{id}Last modified:Â 18 days ago
This endpoint allows you to update a specific category by passing the id
as a path parameter.
Request
Path Params
Query Params
with
stringÂ
optional
Returns the response with translations or subcategories (or both).
Example:
translations, items
Body Params application/json
No schema defined
Example
{
"name": "Dress 101",
"status": "hidden",
"metadata_title": "Dress",
"metadata_description": "Amazing Dress",
"metadata_url": "https://dress.com",
"products": [
{
"id": 388819608,
"sort": 2
},
{
"id": 1661028235,
"sort": 1
}
]
}
Request samples
Responses
Updated Successfully.(201)
Record Not Found(404)
Success | `With` Query Parameter translations(200)
Error Validation(422)
Updated Successfully.
HTTP Code:Â 201
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
{
"status": 201,
"success": true,
"data": {
"id": 707972603,
"name": "Dress 101",
"urls": {
"customer": "https://shtara.com/profile",
"admin": "https://shtara.com/profiles"
},
"sort_order": 0,
"items": [],
"parent_id": 516861512,
"status": "hidden",
"metadata": {
"title": "Dress",
"description": "Amazing Dress",
"url": "https://dress.com"
}
}
}
Last modified: 18 days ago