openapi: 3.0.3 info: title: Microsoft Graph Word Body Versions 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: Versions description: Operations for managing file version history paths: /me/drive/items/{item-id}/versions: get: operationId: listVersions summary: Microsoft Word List Versions description: Retrieve the list of previous versions of a file. tags: - Versions parameters: - $ref: '#/components/parameters/itemId' responses: '200': description: Successfully retrieved versions. content: application/json: schema: $ref: '#/components/schemas/DriveItemVersionCollection' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' x-microcks-operation: delay: 0 dispatcher: FALLBACK components: schemas: DriveItemVersion: type: object description: Represents a specific version of a DriveItem. properties: id: type: string description: The version identifier. example: '1.0' lastModifiedDateTime: type: string format: date-time description: Date and time the version was last modified. example: '2025-03-21T20:01:37Z' lastModifiedBy: $ref: '#/components/schemas/IdentitySet' size: type: integer format: int64 description: Size of the version in bytes. example: 24576 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' DriveItemVersionCollection: type: object description: Collection of drive item versions. properties: value: type: array items: $ref: '#/components/schemas/DriveItemVersion' IdentitySet: type: object description: Keyed collection of identity resources. properties: user: type: object properties: id: type: string description: Unique identifier for the user. example: efee1b77-fb3b-4f65-99d6-274c11914d12 displayName: type: string description: Display name of the user. example: Jane Smith 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