OpenIsle Docs
ApiPostsPostidReactions

React to post

React to a post

POST
/api/posts/{postId}/reactions
AuthorizationBearer <token>

In: header

Path Parameters

postIdinteger
Formatint64
type?string
Value in"LIKE" | "DISLIKE" | "SMILE" | "RECOMMEND" | "CONGRATULATIONS" | "ANGRY" | "FLUSHED" | "STAR_STRUCK" | "ROFL" | "HOLDING_BACK_TEARS" | "MIND_BLOWN" | "POOP" | "CLOWN" | "SKULL" | "FIRE" | "EYES" | "FROWN" | "HOT" | "EAGLE" | "SPIDER" | "BAT" | "CHINA" | "USA" | "JAPAN" | "KOREA"

Response Body

curl -X POST "https://www.open-isle.com/api/posts/0/reactions" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": 0,
  "type": "LIKE",
  "user": "string",
  "postId": 0,
  "commentId": 0,
  "messageId": 0,
  "reward": 0
}