I am trying to create a team folder and adding groups to it using API, Creating a team folder works fine, Then for adding groups to the folder, I could not find any API to do that. Can you please provide link to API if there is any?
I can't get this to work - I've tried everything to add a group to a team folder. I've looked at other APIs and this is the only one that seems close to doing it.
The AddMember selector mentions only the tags 'dropbox_id' and 'email'. These are user selectors and not group selectors. In the web gui, you aren't even allowed to add users to team folders - it must be a group.
I tried just passing a group_id tagged as 'group_id' but I get a 400:Bad Request error.
I also tried passing a group_id tagged as a 'dropbox_id' but it didn't work either.
Can you elaborate on what you mean when you say it didn't work? Please share the full code and output if something isn't working as expected. Make sure you check the response body for an error message.
@jason_nyc Thanks for the code/output! I see you're trying to operate on a team folder using a user-linked "Dropbox API" app. To perform this operation, you'd need to use a "Dropbox Business API" with the 'team member file access' permission, using the "Dropbox-API-Select-Admin" header, like in my the example in my previous post.
By the way, the two attempt you shared here are probably the same error. In the PowerShell attempt you don't seem to be printing the response body, but I expect it would contain the same error.
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?