Posts

Vote on the specified post

Vote on the specified post. Applies only when voting is supported.

post/posts/{id}/vote

Response

OK

successboolean
actionstring

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

Changes

Changed in 2 of the 7 revisions of this API.5510

  • e271d0e41f6d315See the full diff
    • request body became required

      request-body-became-required

    • removed the media type application/json from the request body

      request-body-media-type-removed

    • the success response's property type/format changed from string/ to boolean/ for status 200

      response-property-type-changed

    • deleted the path request parameter id

      request-parameter-removed

    • api operation id post_posts_id_vote removed and replaced with postPostsIdVote

      api-operation-id-removed

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

      api-security-added

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

      api-security-added

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

      new-optional-request-default-parameter-to-existing-path

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

      new-optional-request-default-parameter-to-existing-path

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • fc0a40f3b859245See the full diff
    • added the new path request parameter id

      new-request-path-parameter

    • the success response's property type/format changed from boolean/ to string/ for status 200

      response-property-type-changed

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

      optional-response-header-removed

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

      optional-response-header-removed

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

      optional-response-header-removed

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

      optional-response-header-removed

    • api operation id postPostsIdVote removed and replaced with post_posts_id_vote

      api-operation-id-removed

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

      api-security-removed

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

      api-security-removed

    • request body became optional

      request-body-became-optional

    • added the media type application/json to the request body

      request-body-media-type-added

    This revision also has 18 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog