Skip to main content

Get mutations

Get list of mutations that were applied to resources after a certain point in time.

Query Parameters
    lastSyncedAt float required

    Earliest timestamp for mutation retrieval.

Responses

Request has been handled successfully.


Schema
    success boolean
    data object

    Response schema for get mutations endpoint

    mutations object[] required

    Array of mutations that occurred after lastSyncedAt

  • Array [
  • type string required

    Possible values: [CREATE, UPDATE, DELETE]

    The type of the mutation

    resource string required

    Possible values: [BOOKMARK, COLLECTION, COLLECTION_BOOKMARK, READING_SESSION, PREFERENCE, NOTE]

    The resource the mutation was applied to.

    resourceId string

    The id of the resource the mutation was applied to. Will not be present if the mutation was applied to certain resource without specific ID e.g. Preference.

    data object

    The latest version of the data of the resource that was mutated

    timestamp float required

    Unix timestamp when the latest mutation of the resource occurred

  • ]
  • newLastSyncedAt float required

    Timestamp of the latest mutation. This should be used for subsequent sync requests. If the value is -1, it means no mutations happened since lastSyncedAt.

Loading...