Add a post
Add a post.
Request Body
- Array [
- ]
The body of the post.
The Id of the room the post will be posted in.
Default value: false
Whether the post should be posted as a private note.
The Ids of the tags the post is attached to
references object[]
The Surahs/Ayahs the post relates to.
Possible values: >= 1
and <= 114
The Surah number
Possible values: >= 1
and <= 286
The start of the range of Ayah(s) in a Surah that the post relates to.
If it's a single Ayah,fromAyah
and toAyah
should have the same value.
If the post belongs to the entire Surah, fromAyah
and toAyah
should be left empty
Possible values: >= 1
and <= 286
The end of the range of Ayah(s) in a Surah that the post relates to.
If it's a single Ayah,fromAyah
and toAyah
should have the same value.
If the post belongs to the entire Surah, fromAyah
and toAyah
should be left empty
Default value: false
Whether the post belongs to the entire Surah.
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
Schema
data object
Possible values: [Post created successfully
]
Possible values: [1235
]
{
"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.
Schema
error object
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
Schema
error object
{
"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.
Schema
error object
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
Schema
error object
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}