Start 2025 on time and up to date. Seamlessly integrate your calendars into Dropbox with these simple steps.

Forum Discussion

Jan N.3's avatar
Jan N.3
New member | Level 2
7 years ago

API - Create a subfolder in Teams folderand share it with external email

Hi all, I'm stuck with the following -

I need to create a subfolder in Teams folder and grant read access to the subfolder to external email address. 

Is there an endpoint to achieve this? Thanks in advance for any suggestions. Best, Jan

  • Yes, you can do this with the Dropbox API:

    - To create a team folder itself, if needed: /2/team/team_folder/create (Note: this is only necessary if team is not using the "team space" configuration, and requires a "Dropbox Business API app". You can find more information on the team-space/non-team-space difference in the Namespace Guide. Otherwise, you can just create folders in the team space directly.)

    - To create folders: /2/files/create_folder_v2

    - To share folders: /2/sharing/share_folder

    - To invite members to a shared folder, specifying a particular access level: /2/sharing/add_folder_member

     

    Note that those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. 

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Yes, you can do this with the Dropbox API:

    - To create a team folder itself, if needed: /2/team/team_folder/create (Note: this is only necessary if team is not using the "team space" configuration, and requires a "Dropbox Business API app". You can find more information on the team-space/non-team-space difference in the Namespace Guide. Otherwise, you can just create folders in the team space directly.)

    - To create folders: /2/files/create_folder_v2

    - To share folders: /2/sharing/share_folder

    - To invite members to a shared folder, specifying a particular access level: /2/sharing/add_folder_member

     

    Note that those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.