Create A Category
Create Category
POST {{URL}}/api/v1/category/create
This endpoint allows you to create a category.
Headers
Name
Type
Description
Authentication
string
Authentication token of the admin user creating the category.
Request Body
Name
Type
Description
name
string
The name of the category.
description
string
The description of the category.
{
"status": "success",
"message": "Category created successfully",
"results": 1,
"data": {
"_id": "60b0daf447a84e372c190af0",
"name": "Movies",
"description": "Testing category",
"createdAt": "2021-05-28T11:58:44.000Z",
"__v": 0
}
}Last updated
Was this helpful?