Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Delete Collaboration_ID using API - is that per item (folder/file)

Answered
New post

Comments

2 comments

  • Official comment
    Kourtney

    Marin, 

    There is an individual collaboration ID for each piece of content. For example, if I am a collaborator on Folder A and Folder B, I will have two collaboration IDs. Therefore, to answer your original question, no deleting a collaboration_ID will not remove the user from all content they are collaborated on. 

    Best,

    Kourtney, Box Developer Advocate

    Comment actions Permalink
  • Marin Botev

    Hi Kourtney,

    thank you for your reply!

    Could you please confirm which response field contains the collaboration_ID of the box_item (file/folder)?

    It seems I'm retrieving the incorrect response field "collab.id":

    ----------------

    collaborations = client.file(box_item_id).get_collaborations()

    for collab in collaborations:
          user_name = str(collab.accessible_by)
          collaboration_id = collab.id

    -------------

    Kind regards,

    Marin

    0
    Comment actions Permalink

Please sign in to leave a comment.