Skip to main content
POST
/
interests
/
add
add
curl --request POST \
  --url http://localhost:8000/v1/interests/add \
  --header 'Content-Type: application/json' \
  --data '
{
  "genre": "670e14f586ced1463b2b60bc"
}
'
{
  "data": {
    "interest": {
      "__v": 0,
      "_id": "670d0a62641214952d52aa39",
      "createdAt": "2024-10-14T12:11:14.018Z",
      "genre": "670bedf9ec4170a3e48edade",
      "updatedAt": "2024-10-14T12:11:14.018Z",
      "user": "670c22148db1109908c9f6b9"
    }
  },
  "error": null
}

Body

application/json
genre
string
Example:

"670e14f586ced1463b2b60bc"

Response

add - success

data
object
error
unknown