Paul Allen
Paul Allen

Reputation: 369

Add groups to co-owner role and as viewer-uploader to collaboration via box api

We would like to utilize box to store documents for our corporate collaboration app.

As such, our application has 2 roles for each space: admins and members

The idea is to:

From that point on, the only op needed is to manage changes to the groups.

It seems all of this is doable via the API except for assigning the proper roles to the groups. From what I can tell, the API only allows individuals to added to collab roles. Is this the case? is there a workaround?

Upvotes: 0

Views: 361

Answers (2)

Peter
Peter

Reputation: 2599

As of late last week, Box has APIs to let you collaborate a group onto a folder

You do it the same way you collaborate a user onto a folder

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

Upvotes: 2

seanrose
seanrose

Reputation: 8685

There currently isn't a capability for interacting with Groups in the V2 API, unfortunately; however, we're planning on adding it sometime in the coming months.

Upvotes: 0

Related Questions