POST Category
Developing
POST
{{url}}api/v1/admin/categories
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'http://ecompulse.test/api/v1/admin/categories' \
--header 'Accept: application/json' \
--header 'X-API-Key: exzbLclGAzBCyL0k1Yv29Evu6mwoYOATBF0lWPyT' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Camera And Camcorder",
"main_category_id": 1
}'
Response Response Example
{
"status": "success",
"message": "Category created successfully",
"data": {
"id": 17,
"name": "Camera And Camcorder",
"permalink": "camera-and-camcorder",
"main_category": {
"id": 1,
"name": "Electronics"
},
"status": 1
}
}
Request
Header Params
Accept
stringÂ
required
Example:
application/json
X-API-Key
stringÂ
required
Example:
{{key}}
Body Params application/json
Responses
Modified at 2024-05-26 19:47:17