This endpoint allows the client to create a 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 return the previous "like"
643 matches
40 actions
Forem API V1
40 actions
- A UserGETv1.0.0
- A Users or organizations profile imageGETv1.0.0
- An organizationGETv1.0.0
- Articles with a videoGETv1.0.0
- Comment by idGETv1.0.0
- CommentsGETv1.0.0
- create reactionPOSTv1.0.0
- display adGETv1.0.0
- display adsGETv1.0.0
- display adsPOSTv1.0.0
- display adsPUTv1.0.0
- Followed TagsGETv1.0.0
- FollowersGETv1.0.0
- Invite a UserPOSTv1.0.0
- Organization's ArticlesGETv1.0.0
- Organization's usersGETv1.0.0
- pagesPOSTv1.0.0
- Podcast EpisodesGETv1.0.0
- Publish articlePOSTv1.0.0
- Published article by idGETv1.0.0
- Published article by pathGETv1.0.0
- Published articlesGETv1.0.0
- Published articles sorted by published dateGETv1.0.0
- ReadinglistGETv1.0.0
- remove a pageDELETEv1.0.0
- show details for a pageGETv1.0.0
- show details for all pagesGETv1.0.0
- Suspend a UserPUTv1.0.0
- TagsGETv1.0.0
- The authenticated userGETv1.0.0
- toggle reactionPOSTv1.0.0
- unpublishPUTv1.0.0
- Unpublish a User's Articles and CommentsPUTv1.0.0
- Unpublish an articlePUTv1.0.0
- Update an article by idPUTv1.0.0
- update details for a pagePUTv1.0.0
- User's all articlesGETv1.0.0
- User's articlesGETv1.0.0
- User's published articlesGETv1.0.0
- User's unpublished articlesGETv1.0.0
Social/Forem API V1
create reaction
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
{
"type": "object",
"properties": {
"category": {
"type": "string",
"enum": [
"like",
"unicorn",
"exploding_head",
"raised_hands",
"fire"
]
},
"reactable_id": {
"type": "integer",
"format": "int32"
},
"reactable_type": {
"type": "string",
"enum": [
"Comment",
"Article",
"User"
]
}
},
"required": [
"category",
"reactable_id",
"reactable_type"
],
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
{
"type": "object",
"additionalProperties": true
}