Skip to main content

Add a comment

Add a comment.

Request Body
    anyOf

    body string required

    The body of the comment.

    postId integer required

    The ID of the post the comment will be added to.

    isPrivate boolean

    Default value: false

    Whether the comment should be publicly viewed or not.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    message

    Possible values: [Comment created successfully]

POST /v1/comments/

Authorization

name: x-auth-tokentype: apiKeyin: headerdescription: The JWT access token required for accessing the endpoints.
name: x-client-idtype: apiKeyin: headerdescription: Your client id

Request

Base URL
https://apis-prelive.quran.foundation/auth
x-auth-token
x-client-id
Body
{
"body": "Amazing post mashAllah!",
"postId": 123,
"isPrivate": false
}
curl / cURL
curl -L -X POST 'https://apis-prelive.quran.foundation/auth/v1/comments/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'x-auth-token: <API_KEY_VALUE>' \
-H 'x-client-id: <API_KEY_VALUE>' \
--data-raw '{
"body": "Amazing post mashAllah!",
"postId": 123,
"isPrivate": false
}'