Add a comment
Add a comment.
application/json
Request Body
anyOf
MOD1
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
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
application/json
Schema
Example (from schema)
Schema
success boolean
data object
message
Possible values: [Comment created successfully
]
{
"success": true,
"data": {}
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
application/json
Schema
Example (from schema)
Schema
success boolean
error object
code string
message string
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
application/json
Schema
Example (from schema)
Schema
success boolean
error object
code string
message string
{
"success": false,
"error": {
"code": "NotFoundError",
"message": "The resource you're looking for does not exist"
}
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
application/json
Schema
Example (from schema)
Schema
success boolean
error object
code string
message string
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
application/json
Schema
Example (from schema)
Schema
success boolean
error object
code string
message string
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}
Loading...