Toggle post like​
Toggle like status for a post. If already liked, removes the like. If not liked, adds a like. Updates the post like count and triggers notifications.
Path Parameters
id number required
Unique numeric post ID to like/unlike
Responses
- 200
- 401
- 404
Like status toggled - returns new state
application/json
Schema
Example (from schema)
Schema
liked boolean
true if now liked, false if now unliked
{
"liked": true
}
User not authenticated
Post not found
Loading...