capabilities.work

Upload and Share Document

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

Recipe · 3 steps

Upload and Share Document

Upload a Word document and produce a shareable edit link.

  1. Upload the Word document bytes into the target drive item. Graph returns 200 when replacing existing content or 201 when creating a new file.
  2. Read back the stored drive item to confirm the upload landed with the expected name, size, and file facet.
  3. Create an organization-scoped edit sharing link for the uploaded document. Graph returns 201 when a new link is created.
What you'll need to have ready
  • itemId: The drive item identifier to upload content into.
  • fileContent: The binary .docx content to upload (octet-stream body).
  • linkType: The type of sharing link to create (view, edit, embed).
  • linkScope: The scope of the sharing link (anonymous, organization).
For your developer

Arazzo workflow microsoft-word:upload-and-share-document, 3 operations: uploadContent → getDriveItem → createSharingLink. Specs on APIs.io.