Unitalk Microsoft OneDrive icon

Unitalk Microsoft OneDrive

Consume Microsoft OneDrive API

Folder → Create

AI-generated

Summary

Create a new folder in Microsoft OneDrive at a specified path or with a specified name, optionally inside a given parent folder.

Inputs

  • Name (required) — The name or path of the folder to create. If a path with multiple segments is provided, each segment is created sequentially as a subfolder.
  • Options — Additional options including 'Parent Folder ID' to specify the ID of an existing folder under which the new folder(s) should be created.

Output shape

a list containing the metadata of the created folder(s), with each folder represented as a JSON object including its ID and other details.

If creating nested folders using a path, multiple folders are created sequentially and the output corresponds to the last created folder's information. If any folder creation fails, the process stops and returns the response of the last attempt.

Examples

Example 1: Create a folder named 'Projects' at root level

Set 'Name' to 'Projects' and leave 'Parent Folder ID' empty.

Example 2: Create nested folders '/Projects/2024/Reports' inside an existing folder by specifying its ID

Set 'Name' to '/Projects/2024/Reports' and provide the existing folder ID in 'Parent Folder ID' option.

Links

Discussion