Skip to main content

Add a post

Add a post.

Request Body
    anyOf

    body string required

    The body of the post.

    roomId integer

    The Id of the room the post will be posted in.

    isPrivate boolean

    Default value: false

    Whether the post should be posted as a private note.

    tagIds integer[]

    The Ids of the tags the post is attached to

    references object[]

    The Surahs/Ayahs the post relates to.

  • Array [
  • surahId integer required

    Possible values: >= 1 and <= 114

    The Surah number

    fromAyah integer nullable

    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

    toAyah integer nullable

    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

    isSurah boolean

    Default value: false

    Whether the post belongs to the entire Surah.

  • ]
Responses

Request has been handled successfully.


Schema
    success boolean
    data object
    message

    Possible values: [Post created successfully]

    postId

    Possible values: [1235]

Loading...