Skip to main content

Toggle like a post

Toggle like a post.

Path Parameters
    postId string required

    The id of the post.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    liked boolean
POST /v1/posts/toggleLike/:postId

Authorization

name: o_t_htype: apiKeyin: header

Request

Base URL
https://auth.quran.foundation
ApiKeyAuth
postId — path required
Body
{}
curl / cURL
curl -L -X POST 'https://auth.quran.foundation/v1/posts/toggleLike/:postId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'o_t_h: <API_KEY_VALUE>' \
--data-raw '{}'