Skip to main content

Update a comment

Update a comment.

Path Parameters
    commentId string required

    The id of the comment to be updated.

Request Body
    body string required

    The updated body of the comment.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    message

    Possible values: [Comment was updated successfully]

PUT /v1/comments/:commentId

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
commentId — path required
Body
{
"body": "Amazing post mashAllah!!"
}
curl / cURL
curl -L -X PUT 'https://apis-prelive.quran.foundation/auth/v1/comments/:commentId' \
-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!!"
}'