Posts

React to the specified post

Changed on

React to the specified post.

post/posts/{id}/react

Request

Request body application/x-www-form-urlencoded

reaction_idinteger required

ID of the reaction to use. Use the current reaction ID to undo.

Response

OK

successboolean
actionstring

"insert" or "delete" based on whether the reaction was added or removed.

Changes

    • breaking

      request body became required

    • breaking

      removed the media type application/json from the request body

    • breaking

      the response's property type changed from string to boolean for status

    • warning

      deleted the path request parameter id

    • info

      api operation id post_posts_id_react removed and replaced with postPostsIdReact

    • info

      the endpoint scheme security XF-Api-Key was added to the API

    • info

      the endpoint scheme security XF-OAuth2 was added to the API

    • info

      added the new optional header request parameter XF-Api-User to all path's operations

    • info

      added the new optional query request parameter api_bypass_permissions to all path's operations

    • breaking

      added the new path request parameter id

    • breaking

      the response's property type changed from boolean to string for status

    • warning

      the optional response header XF-Latest-Api-Version removed for the status 200

    • warning

      the optional response header XF-Request-User removed for the status 200

    • warning

      the optional response header XF-Request-User-Extras removed for the status 200

    • warning

      the optional response header XF-Used-Api-Version removed for the status 200

    • info

      api operation id postPostsIdReact removed and replaced with post_posts_id_react

    • info

      the endpoint scheme security XF-Api-Key was removed from the API

    • info

      the endpoint scheme security XF-OAuth2 was removed from the API

    • info

      request body became optional

    • info

      added the media type application/json to the request body