capabilities.work

Checkout Edit and Check In Document

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

Recipe · 3 steps

Checkout Edit and Check In Document

Check out a document, replace its content, and check it back in.

  1. Check the document out to prevent others from editing it. Graph returns 204 with no content on success.
  2. Upload the revised document content into the checked-out item. Graph returns 200 when the existing content is replaced.
  3. Check the document back in with a version comment, making the new version available to other users. Graph returns 204 with no content on success.
What you'll need to have ready
  • itemId: The drive item identifier of the document to edit.
  • fileContent: The revised binary .docx content to upload.
  • checkinComment: The check-in comment recorded against the new version.
For your developer

Arazzo workflow microsoft-word:checkout-edit-checkin, 3 operations: checkoutDriveItem → uploadContent → checkinDriveItem. Specs on APIs.io.