Layout refresh

Answered

Comments

1 comment

  • Official comment
    Avatar
    Sergey Yuldashev

    Hello,

    As per discussion in the related support ticket:

    1. PUT/PATCH /rest/v3/layouts/{layoutId}/items/{id} methods are expected to modify the layout item in the runtime - i.e. Desktop Client should reflect the changes that server received over the API calls.
    2. There is a known limitation of those methods not being able to change only resourceId value on the fly(i.e. change the original camera stream).
    3. If there is a need to "replace" the camera feed on the open layout there are 2 possible workarounds:
    • Delete the item first(with DELETE /rest/v3/layouts/{layoutId}/items/{id}) first and then add a new one(with PATCH /rest/v3/layouts/{layoutId}/items/{id}
    • Modify the whole layout instead of items one by one with PATCH/PUT /rest/v3/layouts/{layoutId}
    Comment actions Permalink

Please sign in to leave a comment.