How to determine if the relationship is "synchronized_from" or "synchronized_to" from REST API

How can we determine if an item is "synchronized_from" or "synchronized_to" another item?

Also getting key , id of the synchronized item.
Anyone a clue? Thanks for sharing.

Comments

  • Steffen Wallat
    Steffen Wallat Member Posts: 2

    by using the REST API

  • Jan Kastning
    Jan Kastning Member Posts: 32

    I don't think synchronization has a predefined direction. If you look at the sync tab of an item you see all items which are connected and can be synced. Without actively triggering the sync, the items are not actually synced to each other. Also this is why there is a sync status given:

    Also you see, that you can decide each time in which direction your sync shall be executed. Therefore, the api can not provide a direction.

    GET /items/{id}/synceditems will give you a list of all items which are sync-connected to the requested item. From the given data you can extract the id, documentKey, globalId and more. See also these requests:

    AFAIK you can not trigger a sync via the rest api.