reactions

toggle reaction

This endpoint allows the client to toggle the user's reaction to a specified reactable (eg, Article, Comment, or User). For examples: * "Like"ing an Article will create a new "like" Reaction from the user for that Articles * "Like"ing that Article a second time will remove the "like" from the user

post/api/reactions/toggle

Query parameters

category'like' | 'unicorn' | 'exploding_head' | 'raised_hands' | 'fire' required
reactable_idinteger required
reactable_type'Comment' | 'Article' | 'User' required

Response

successful

Changes