Microsoft Word · Arazzo Workflow

Microsoft Word Upload and Share Document

Version 1.0.0

Upload a Word document to OneDrive, confirm its metadata, and generate an organization sharing link.

1 workflow 3 source APIs 1 provider
View Spec View on GitHub DocumentsMicrosoft-365OfficeProductivityWord ProcessingArazzoWorkflows

Provider

microsoft-word

Workflows

upload-and-share-document
Upload a Word document and produce a shareable edit link.
Uploads file content to a drive item, retrieves the resulting metadata, and creates an organization-scoped edit link for the uploaded document.
3 steps inputs: fileContent, itemId, linkScope, linkType outputs: itemId, name, shareUrl
1
uploadDocument
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
getItem
Read back the stored drive item to confirm the upload landed with the expected name, size, and file facet.
3
createLink
Create an organization-scoped edit sharing link for the uploaded document. Graph returns 201 when a new link is created.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Microsoft Word Upload and Share Document
  summary: Upload a Word document to OneDrive, confirm its metadata, and generate an organization sharing link.
  description: >-
    A common Microsoft Graph pattern for getting a Word document into OneDrive
    and immediately making it shareable. The workflow uploads the .docx bytes to
    a drive item, reads back the stored item metadata to confirm name and size,
    and then creates an edit sharing link scoped to the organization. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: contentApi
  url: ../openapi/microsoft-word-content-api-openapi.yml
  type: openapi
- name: driveItemsApi
  url: ../openapi/microsoft-word-drive-items-api-openapi.yml
  type: openapi
- name: permissionsApi
  url: ../openapi/microsoft-word-permissions-api-openapi.yml
  type: openapi
workflows:
- workflowId: upload-and-share-document
  summary: Upload a Word document and produce a shareable edit link.
  description: >-
    Uploads file content to a drive item, retrieves the resulting metadata, and
    creates an organization-scoped edit link for the uploaded document.
  inputs:
    type: object
    required:
    - itemId
    - fileContent
    properties:
      itemId:
        type: string
        description: The drive item identifier to upload content into.
      fileContent:
        type: string
        description: The binary .docx content to upload (octet-stream body).
      linkType:
        type: string
        description: The type of sharing link to create (view, edit, embed).
        default: edit
      linkScope:
        type: string
        description: The scope of the sharing link (anonymous, organization).
        default: organization
  steps:
  - stepId: uploadDocument
    description: >-
      Upload the Word document bytes into the target drive item. Graph returns
      200 when replacing existing content or 201 when creating a new file.
    operationId: uploadContent
    parameters:
    - name: item-id
      in: path
      value: $inputs.itemId
    requestBody:
      contentType: application/octet-stream
      payload: $inputs.fileContent
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      uploadedItemId: $response.body#/id
      uploadedName: $response.body#/name
  - stepId: getItem
    description: >-
      Read back the stored drive item to confirm the upload landed with the
      expected name, size, and file facet.
    operationId: getDriveItem
    parameters:
    - name: item-id
      in: path
      value: $steps.uploadDocument.outputs.uploadedItemId
    - name: $select
      in: query
      value: id,name,size,file,webUrl
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      itemId: $response.body#/id
      name: $response.body#/name
      size: $response.body#/size
      webUrl: $response.body#/webUrl
  - stepId: createLink
    description: >-
      Create an organization-scoped edit sharing link for the uploaded document.
      Graph returns 201 when a new link is created.
    operationId: createSharingLink
    parameters:
    - name: item-id
      in: path
      value: $steps.getItem.outputs.itemId
    requestBody:
      contentType: application/json
      payload:
        type: $inputs.linkType
        scope: $inputs.linkScope
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      permissionId: $response.body#/id
      shareUrl: $response.body#/link/webUrl
  outputs:
    itemId: $steps.getItem.outputs.itemId
    name: $steps.getItem.outputs.name
    shareUrl: $steps.createLink.outputs.shareUrl

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/microsoft-word-upload-and-share-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.