Update Post API
Use this api to update existing post of author, please see Create post
api for documention request params/body.
Path Parameters
post id
Query Parameters
Client API token
Header Parameters
user access token
client access token
timestamp of token expiry
access token type
user uid
Request Body
- Array [
- ]
post object
post body
Default value: false
filters_attributes object[]
- 200
Example response
Schema
- Array [
- ]
- Array [
- ]
- Array [
- ]
post object
Post/Reflection model
The ID of the post.
the post text
The number of likes.
Whether the post should be publicly viewed or not.
The date the post was published at. Format of the date is MMMM dd, yyyy HH:mm
Whether the post is global or not. A post inside a room can be set to global and becomes visible to everyone.
Whether the post is editable or not. It will be true
if the post belongs to the current user.
Whether the post is deletable or not. It will be true
if the post belongs to the current user.
Whether the current user can report the post or not.
citation_texts object[]
translation text
name of the translation
from ayah number
to ayah number
The language of the post.
The number of views.
author object
filters object[]
tags object[]
the #tag
Default value: 0
The average time it takes to read the post
{
"post": {
"id": 0,
"body": "string",
"likes": 0,
"draft": true,
"published_at": "string",
"global": true,
"editable": true,
"deletable": true,
"reportable": true,
"citation_texts": [
{
"id": 0,
"text": "string",
"translated_name": "string",
"from": 0,
"to": 0,
"translation_id": 0
}
],
"language": "string",
"detected_translation": 0,
"views": 0,
"comments": [
{}
],
"liked": true,
"author": {
"id": 0,
"username": "string",
"name": "string",
"verified": true,
"profile_img": "string"
},
"filters": [
{
"id": 0,
"from": 0,
"to": 0,
"indicator_text": "string"
}
],
"tags": [
{
"id": 0,
"name": "string"
}
],
"estimated_reading_time": 55018.9
}
}
{
"post": {
"id": 442,
"body": "i love #allah and #quran",
"likes": 0,
"draft": false,
"published_at": "June 25, 2018 19:26",
"room_id": null,
"global": true,
"editable": true,
"deletable": true,
"reportable": false,
"citation_texts": {
"0": [
{
"id": 12480,
"citation_id": 3,
"number": 1,
"text": "بسم الله الرحمن الرحيم الم",
"translation_id": 1
}
],
"1": [
{
"id": 13149,
"citation_id": 6,
"number": 8,
"text": "يا أيها الذين آمنوا كونوا قوامين لله شهداء بالقسط ولا يجرمنكم شنآن قوم على ألا تعدلوا اعدلوا هو أقرب للتقوى واتقوا الله إن الله خبير بما تعملون",
"translation_id": 1
},
{
"id": 13150,
"citation_id": 6,
"number": 9,
"text": "وعد الله الذين آمنوا وعملوا الصالحات لهم مغفرة وأجر عظيم",
"translation_id": 1
},
{
"id": 13151,
"citation_id": 6,
"number": 10,
"text": "والذين كفروا وكذبوا بآياتنا أولئك أصحاب الجحيم",
"translation_id": 1
},
{
"id": 13152,
"citation_id": 6,
"number": 11,
"text": "يا أيها الذين آمنوا اذكروا نعمت الله عليكم إذ هم قوم أن يبسطوا إليكم أيديهم فكف أيديهم عنكم واتقوا الله وعلى الله فليتوكل المؤمنون",
"translation_id": 1
}
]
},
"language": "ARABIC",
"detected_translation": 1,
"views": 0,
"group": null,
"group_link": null,
"comments": [],
"liked": false,
"author": {
"id": 4,
"username": "amerabbas",
"name": "Amer",
"verified": false,
"profile_img": "/avatar/150/16a085/AMER"
},
"filters": [
{
"id": 356,
"from": null,
"to": null,
"indicator_text": "surah-3"
},
{
"id": 357,
"from": 1,
"to": 1,
"indicator_text": "surah-2-1"
},
{
"id": 358,
"from": 8,
"to": 11,
"indicator_text": "surah-5-8:11"
}
],
"tags": [
{
"id": 5,
"name": "Zohd"
},
{
"id": 17,
"name": "Allah"
},
{
"id": 25,
"name": "quran"
}
]
}
}