openapi: 3.0.3 info: title: Microsoft Graph Word Body Checkout API description: REST API for interacting with Word documents in Microsoft 365 and OneDrive via the Microsoft Graph unified endpoint. Provides operations for file management, content access, sharing, permissions, versioning, and document metadata for DriveItem resources. version: 1.0.0 contact: name: Microsoft Graph Support url: https://developer.microsoft.com/graph/support license: name: Microsoft API License url: https://www.microsoft.com/en-us/legal/terms-of-use x-generated-from: documentation x-last-validated: '2026-04-18' servers: - url: https://graph.microsoft.com/v1.0 description: Microsoft Graph v1.0 production endpoint security: - oauth2: [] tags: - name: Checkout description: Operations for checking in and out files paths: /me/drive/items/{item-id}/checkin: post: operationId: checkinDriveItem summary: Microsoft Word Check in Drive Item description: Check in a checked out driveItem resource, making the version available to others. tags: - Checkout parameters: - $ref: '#/components/parameters/itemId' requestBody: content: application/json: schema: $ref: '#/components/schemas/CheckinRequest' responses: '204': description: Successfully checked in the item. '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK /me/drive/items/{item-id}/checkout: post: operationId: checkoutDriveItem summary: Microsoft Word Check Out Drive Item description: Check out a driveItem resource to prevent others from editing the document. tags: - Checkout parameters: - $ref: '#/components/parameters/itemId' responses: '204': description: Successfully checked out the item. '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: ErrorResponse: type: object description: Error response from the API. properties: error: type: object properties: code: type: string description: Error code. example: itemNotFound message: type: string description: Human-readable error message. example: The resource could not be found. innerError: type: object properties: request-id: type: string description: Request correlation ID. example: b0c6a5b0-4c0a-4c8e-9b0a-1234567890ab date: type: string format: date-time description: Timestamp of the error. example: '2025-03-21T20:01:37Z' CheckinRequest: type: object description: Request body for checking in a drive item. properties: comment: type: string description: Check-in comment. example: Final review completed responses: NotFound: description: The requested resource was not found. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' Unauthorized: description: Authentication required or token expired. content: application/json: schema: $ref: '#/components/schemas/ErrorResponse' parameters: itemId: name: item-id in: path required: true description: The unique identifier of the drive item. schema: type: string example: 01NKDM7HMOJTVYMDOSXFDK2QJDXCDI3WUK securitySchemes: oauth2: type: oauth2 description: OAuth 2.0 authorization code flow with Microsoft Identity Platform. flows: authorizationCode: authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize tokenUrl: https://login.microsoftonline.com/common/oauth2/v2.0/token scopes: Files.Read: Read user files Files.ReadWrite: Read and write user files Files.Read.All: Read all files the user can access Files.ReadWrite.All: Read and write all files the user can access