Skip to main content

Add user bookmark​

Add a bookmark by details.

Query Parameters
    lastMutationAt float required

    The timestamp of the last mutation that was applied on the server. Required for any data modification operation to ensure concurrency control.

Request Body
    anyOf

    key integer required

    The Surah number.

    type string required

    Possible values: [ayah]

    Default value: ayah

    The bookmark type.

    verseNumber integer required

    The Ayah number to be added.

    isReading boolean

    Whether this bookmark is the reading bookmark. Only one reading bookmark per user.

    mushaf integer required

    Possible values: [1, 2, 3, 4, 5, 6, 7, 11, 19]

    The id of the Mushaf being used.

    1 = QCFV2

    2 = QCFV1

    3 = Indopak

    4 = UthmaniHafs

    5 = KFGQPCHAFS

    6 = Indopak15Lines

    7 = Indopak16Lines

    11 = Tajweeed

    19 = QCFTajweedV4

Responses

Request has been handled successfully.

Response Headers
  • X-Mutation-At string

    Unix timestamp (milliseconds) of the latest mutation for the user. Clients should store this value and include it in subsequent mutation requests for optimistic concurrency control.


Schema
    success boolean
    data object
    id string required
    createdAt date-time required
    type string required
    key integer required
    verseNumber integer
    group string
    isInDefaultCollection boolean required
Loading...