POST
/
posts
/
toggle-bookmark
/
{post_id}
Toggle post bookmark
curl --request POST \
  --url https://localhost:5000/posts/toggle-bookmark/{post_id} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "<string>",
  "isBookmarked": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

Post ID

Response

Bookmark status updated

success
boolean
Example:

true

message
string
isBookmarked
boolean