Collaborators added automatically
Can I have collaborators added automatically if I provide a list? For example I would only need certain collaborators for some files, but we wouldn't want to add them manually every time.
-
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
, orco-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
サインインしてコメントを残してください。
コメント
1件のコメント