Category APIs
Last updated
Was this helpful?
Last updated
Was this helpful?
This api allows the user to create a new category in nodebb
/v2/categories
/discussion/v2/categories
This api allows the user to get all details of a category by using categoryId and slug from nodebb.
/category/{category_id}/{slug}
/discussion/category/{category_id}//{slug}
This api allow the user to get all the details of categories using categoryId from nodebb
/category/{cid}
/discussion/category/{cid}
This api allow the user to get all the details of categories based on cid mentioned in array from nodebb
/category/list
/discussion/category/list
This api can updated the category details based on the category id which we created previously
/v2/categories/{cid}
/discussion/v2/categories/{cid}
This api allows the user to delete the existing category by using categoryID from nodebb
/v2/categories/{cid}
/discussion/v2/categories/{cid}
This api can get the list of category moderators based on the category ID that we created previously
/v2/categories/{cid}/moderators
/discussion/v2/categories/{cid}/moderators
This api allow the user to enable the category(If the category is in disable state)
/v2/categories/{cid}/state
/discussion/v2/categories/{cid}/state
This api allow the user to add privilages for category in nodebb.
/v2/categories/{cid}/privileges
/discussion/v2/categories/{cid}/privileges
This api allow user to remove privileges for a category in nodebb.
/v2/categories/{cid}/state
/discussion/v2/categories/{cid}/privileges