Microsoft OneDrive (With Drive ID)

Consume Microsoft OneDrive API with custom Drive ID

Folder → Rename

AI-generated

Summary

Rename a folder in Microsoft OneDrive specified by its item ID to a new given name.

Inputs

  • Item ID (required) — The unique ID of the folder to be renamed.
  • New Name (required) — The new name to assign to the folder.

Output shape

a single record with the updated folder's metadata

The response includes the updated folder details after renaming. Supports renaming of both files and folders but here scoped to folders. Error returned if the item ID is invalid or the item is not a folder.

Examples

Example 1: Rename folder example

Provide the folder's Item ID and the desired new name to rename it via the Microsoft OneDrive API.

Links

Discussion