Collaborators added automatically

New post

Comments

1 comment

  • rocks

    Hi ,

     

    Yes you can supply a list of Box user Ids through your custom application / script using the "Add Collaborations" API. 

     

    You will also need to decide on which level of access is appropriate for your use case: 

    editor, viewer, previewer, uploader, previewer uploader, viewer uploader, or co-owner.

     

    https://developer.box.com/reference#add-a-collaboration

     

     

    curl https://api.box.com/2.0/collaborations \
    -H "Authorization: Bearer ACCESS_TOKEN" \
    -d '{"item": { "id": "FOLDER_ID", "type": "folder"}, "accessible_by": { "id": "USER_ID", "type": "user" }, "role": "editor"}' \
    -X POST

     

    Hope this helps,

    Peter

     

    0
    Comment actions Permalink

Please sign in to leave a comment.