Update Category

Update A Specific Category

PUT {{URL}}/api/v1/category/update/:categoryId

This endpoint allows you to update a specific category.

Path Parameters

Name
Type
Description

category_id

string

The Id of the category to update.

Headers

Name
Type
Description

Authentication

string

Authentication token to track down who is emptying our stocks.

Request Body

Name
Type
Description

name

string

The name to be updated.

description

string

The description to be updated.

{
    "status": "success",
    "message": "Category updated successfully",
    "results": 1,
    "data": {
        "_id": "607be82e18d64a0022f3045e",
        "name": "Movies",
        "description": "Testing category",
        "createdAt": "2021-04-18T08:05:02.000Z",
        "__v": 0
    }
}

Last updated

Was this helpful?