Capability Sources

Create a folder in OneDrive or a SharePoint library

Changed on

Requires Files.ReadWrite and filesWrite for the member's own OneDrive, or Files.ReadWrite.All and filesFull for other drives. Creates one folder under an existing parent id. Name conflicts fail without overwriting or silently renaming anything. Uses only the calling member's delegated Microsoft 365 connection. Never automatically retry a mutation after a timeout, cancellation, or ambiguous response; inspect current state first.

post/v1/capabilities/microsoft-365/drive-folders

Request

  • Base URL
    https://api.openworklabs.com
  • URL
    https://api.openworklabs.com/v1/capabilities/microsoft-365/drive-folders
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

driveIdstring

The file's driveId from a search, folder or link result. Omit for the member's own OneDrive.

parentIdstring required

Existing parent folder id in that drive.

namestring required

Response

Microsoft Graph mutation receipt returned.

oktrue required

Changes

    • breaking

      the response property / became nullable for the status

    • info

      response property file/size list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added the new optional request property

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status

    • info

      added the required property / to the response with the status