capabilities.work

Rename Move and Audit Document

A 3-step recipe with Microsoft Word. We can help you get access.

Recipe · 3 steps

Rename Move and Audit Document

Rename a document, relocate it, and review its versions.

  1. Rename the document by updating its name metadata. Graph returns 200 with the updated drive item.
  2. Move the document into the destination folder by updating its parent reference. Graph returns 200 with the moved drive item.
  3. List the version history of the relocated document so the change can be audited. Graph returns 200 with the collection of versions.
What you'll need to have ready
  • itemId: The drive item identifier of the document.
  • newName: The new name to apply to the document.
  • targetFolderId: The identifier of the destination parent folder.
For your developer

Arazzo workflow microsoft-word:rename-move-audit, 3 operations: updateDriveItem → moveDriveItem → listVersions. Specs on APIs.io.