Update a post
Update a post.
Path Parameters
The id of the comment to be updated.
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. If references
is not passed with update post API, existing references of the post will be removed.
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
- 400
- 401
- 403
- 404
- 422
- 429
- 500
- 502
- 503
- 504
Request has been handled successfully.
Schema
data object
Possible values: [Post was updated successfully
]
{
"success": true,
"data": {}
}
The request is missing required parameters or is invalid.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The request is missing required headers or is invalid",
"type": "invalid_request",
"success": false
}
The request is unauthorized.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The request requires user authentication",
"type": "unauthorized",
"success": false
}
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
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The server understood the request, but refuses to authorize it",
"type": "forbidden",
"success": false
}
Not Found. The resource being accessed does not exist.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The requested resource could not be found",
"type": "not_found",
"success": false
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The request was well-formed but was unable to be followed due to semantic errors",
"type": "unprocessable_entity",
"success": false
}
Too many requests, please try again later.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "Too many requests, please try again later",
"type": "rate_limit_exceeded",
"success": false
}
Server Error. Something went wrong, try again later.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The server encountered an internal error and was unable to complete your request",
"type": "internal_server_error",
"success": false
}
Invalid response from the upstream server
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The server was acting as a gateway or proxy and received an invalid response from the upstream server",
"type": "bad_gateway",
"success": false
}
The server is currently unable to handle the request due to a temporary overload or scheduled maintenance
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The server is currently unable to handle the request due to a temporary overload or scheduled maintenance",
"type": "service_unavailable",
"success": false
}
The server did not receive a timely response from the upstream server.
Schema
{
"message": "string",
"type": "gateway_timeout",
"success": false
}
{
"message": "The server was acting as a gateway or proxy and did not receive a timely response from the upstream server",
"type": "gateway_timeout",
"success": false
}