Update Interest

Get Interests

PUT {{URL}}/api/v1/interests/update/:interest_id

This endpoint allows you to update an interest.

Path Parameters

Name
Type
Description

interest_id

string

The id of the interest to update

Headers

Name
Type
Description

Authentication

string

Authentication token of the admin user

Request Body

Name
Type
Description

name

string

name of interest

category

string

the category to be updated

{
    "status": "success",
    "message": "updated interest successfully",
    "results": 1,
    "data": {
        "_id": "60b0dd3f47a84e372c190af2",
        "name": "Movies",
        "category": "607be83e18d64a0022f3045f",
        "createdAt": "2021-05-28T12:08:31.000Z",
        "__v": 0
    }
}

Last updated

Was this helpful?