Light Mode
Create Category
POST
/categoriesModified at: 6 days ago
This endpoint allows you to create a new category and return the category ID and its details.
Request
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"
}
Request samples
Responses
Created Successfully(201)
Error Validation(422)
Created 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"
}
}
}
Modified at 6 days ago