User-related API environment
Production user-related API docs
These pages describe the Production user-related API stack.
Use production OAuth credentials, production API base URLs, and production app URLs when following this documentation.
Need to test before going live? Switch to the Pre-live docs using the environment switcher above.
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)
Example
Schema
liked boolean
true if now liked, false if now unliked
{
"liked": true
}
{
"liked": true
}
User not authenticated
Post not found
Loading...