Remove Comment API
The "remove comment" API allows a user to delete a specific comment from a post.
Path Parameters
comment_id integer required
comment id
Query Parameters
client_auth_token string required
Client API token
Header Parameters
access-token string required
user access token
client string required
client access token
expiry string required
timestamp of token expiry
Example: 1531315250
token-type string required
access token type
Example: Bearer
uid string required
user uid
Example: user@quranreflect.com
Responses
- 200
- 401
- 404
OK
Response Headers
application/json
Schema
Example (from schema)
Example 1
Example
Schema
success boolean
message string
{
"success": true,
"message": "string"
}
{
"success": true,
"message": "Comment was successfully removed."
}
{
"success": true,
"message": "Comment was successfully removed."
}
Unauthorized response, api will respond with this 401 eithr user is not logged in or do not have permission to perform some action. Like creating a post in a room, but user is not member of room.
System will also return 401 if api token is missing or invlaid.
application/json
Schema
Example (from schema)
not logged in
missing or invalid api key
Schema
errors string[]
status integer
Default value: 401
success boolean
Default value: false
{
"errors": [
"string"
],
"status": 401,
"success": false
}
{
"errors": [
"You need to sign in or sign up before continuing."
],
"success": false
}
{
"message": "You don't have permission!",
"status": 401,
"success": false
}
Not Found
application/json
Schema
Example (from schema)
comment not found
Schema
success boolean
status integer
message string
{
"success": true,
"status": 0,
"message": "string"
}
{
"success": false,
"status": 404,
"message": "Comment not found"
}
Loading...