Use the following request to create a new foder on the Google Drive:
Request type: POST
URI: ‘https://www.googleapis.com/drive/v3/files’
Headers: “Authorization”: `Bearer ${accessToken}` Use the access token generated using the access credentials
“Content-Type”: “application/json”
“Request Body”:
“{
“name”: “folderName”,
“mimeType”: “application/vnd.google-apps.folder”,
“parents”: [“{parentFolderID}”],
}”
To get the folder ID of any folder in Google Drive easily, open the folder in the browser and copy the part in the URL after “https://drive.google.com/drive/folders/”
e.g. “https://drive.google.com/drive/folders/abcd123xyz” Folder ID is “abcd123xyz”