Upload files to Drive and create new folders straight from the Next Matter workflow.
Prepare to connect to Microsoft
GET https://graph.microsoft.com/v1.0/users/{user-id}/drives
Alternative endpoints
https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_ID:/FILE_NAME:/content
PARENT_ID
is the name of the parent (folder) directory that the file will be inserted to.https://graph.microsoft.com/v1.0/drives/DRIVE_ID/items/PARENT_FOLDER_ID/children
You can find the info on how to find the DRIVE_ID in the Before you begin section. The PARENT_FOLDER_ID is the name of the parent folder. It might also be root
.$.id
.
https://graph.microsoft.com/v1.0/me/drive/items/SOURCE_FOLDER_NAME/FILE_NAME:/copy