add
Interest
add
Add Interests
This endpoint allows you to add a new interest.
Request Body
genre(string): The ID of the genre to be added.
Example:
{
"genre": "670e14f586ced1463b2b60bc"
}
Response
Upon a successful request, the response will include the details of the added interest:
interest.user(string): The user associated with the interest.interest.genre(string): The ID of the added genre.interest._id(string): The ID of the added interest.interest.createdAt(string): The timestamp of when the interest was created.interest.updatedAt(string): The timestamp of when the interest was last updated.interest.__v(integer): Version key.
In case of an error, the response will include:
data(object): The response data.error(string): The error message, if any.
Example Response:
{
"data": {
"interest": {
"user": "",
"genre": "",
"_id": "",
"createdAt": "",
"updatedAt": "",
"__v": 0
}
},
"error": null
}
POST
add