Microsoft Graph drives.driveItem API

The drives.driveItem API from Microsoft Graph — 790 operation(s) for drives.driveitem.

Documentation

📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/admin?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreementacceptance?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/agreement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamsapp?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/application?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/applicationtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/azure-ad-auditlog-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/authenticationmethodspolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/certificatebasedauthconfiguration?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/chat?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/communications-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/complianceapioverview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-externalconnection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contact?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/contract?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/copilot-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/datapolicyoperation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-apps-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/intune-device-conceptual?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/device?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/directory?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domaindnsrecord?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/domain?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/drive?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/education-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/employee-experience-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/externalconnectors-external?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/filter-query-parameter
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/excel?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/grouplifecyclepolicy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsetting?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/groupsettingtemplate?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/identitycontainer?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/informationprotection?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/invitation?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/users?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/oauth2permissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/organization?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/resourcespecificpermissiongrant?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/place?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/planner-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/print?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/privacy?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/report?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/rolemanagement?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/schemaextension?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/scopedrolemembership?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/search-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/security-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/serviceprincipal?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/shares?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sharepoint?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/solutions-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/filestorage?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscribedsku?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teams-api-overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/teamwork?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/tenantrelationship?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/auth/auth-concepts
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/workplace?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
📖
Documentation
https://learn.microsoft.com/en-us/graph/api/resources/sitepage?view=graph-rest-1.0

Specifications

Other Resources

OpenAPI Specification

microsoft-graph-drives-driveitem-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Graph Admin Admin.admin drives.driveItem API
  description: 'Microsoft Graph API for managing administrative resources in Microsoft Entra ID.

    This API enables administrators to manage Microsoft Edge browser settings, Internet Explorer mode configurations,

    site lists, shared browser sites, Microsoft 365 Apps installation options, people insights, service announcements,

    SharePoint settings, Copilot administration, directory administrative units, and admin consent policies.'
  version: 1.0.0
  contact:
    name: Microsoft Graph API Support
    url: https://developer.microsoft.com/graph
servers:
- url: https://graph.microsoft.com/v1.0
  description: Microsoft Graph API v1.0 endpoint
tags:
- name: drives.driveItem
paths:
  /drives/{drive-id}/bundles:
    description: Provides operations to manage the bundles property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get bundles from drives
      description: Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive.
      operationId: drives.ListBundles
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.driveItemCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Create new navigation property to bundles for drives
      operationId: drives.CreateBundles
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.driveItem'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/bundles/{driveItem-id}:
    description: Provides operations to manage the bundles property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get bundles from drives
      description: Collection of bundles (albums and multi-select-shared sets of items). Only in personal OneDrive.
      operationId: drives.GetBundles
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/bundles/{driveItem-id}/content:
    description: Provides operations to manage the media for the drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get content for the navigation property bundles from drives
      description: The content stream, if the item represents a file.
      operationId: drives.GetBundlesContent
      parameters:
      - name: $format
        in: query
        description: Format of the content
        schema:
          type: string
      responses:
        2XX:
          description: Retrieved media content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
    put:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Update content for the navigation property bundles in drives
      description: The content stream, if the item represents a file.
      operationId: drives.UpdateBundlesContent
      requestBody:
        description: New media content.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
    delete:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Delete content for the navigation property bundles in drives
      description: The content stream, if the item represents a file.
      operationId: drives.DeleteBundlesContent
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /drives/{drive-id}/bundles/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get the number of the resource
      operationId: drives.bundles.GetCount-c935
      parameters:
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /drives/{drive-id}/following:
    description: Provides operations to manage the following property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get following from drives
      description: The list of items the user is following. Only in OneDrive for Business.
      operationId: drives.ListFollowing
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.driveItemCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/following/{driveItem-id}:
    description: Provides operations to manage the following property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get following from drives
      description: The list of items the user is following. Only in OneDrive for Business.
      operationId: drives.GetFollowing
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/following/{driveItem-id}/content:
    description: Provides operations to manage the media for the drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get content for the navigation property following from drives
      description: The content stream, if the item represents a file.
      operationId: drives.GetFollowingContent
      parameters:
      - name: $format
        in: query
        description: Format of the content
        schema:
          type: string
      responses:
        2XX:
          description: Retrieved media content
          content:
            application/octet-stream:
              schema:
                type: string
                format: binary
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
    put:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Update content for the navigation property following in drives
      description: The content stream, if the item represents a file.
      operationId: drives.UpdateFollowingContent
      requestBody:
        description: New media content.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
    delete:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Delete content for the navigation property following in drives
      description: The content stream, if the item represents a file.
      operationId: drives.DeleteFollowingContent
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /drives/{drive-id}/following/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get the number of the resource
      operationId: drives.following.GetCount-16f3
      parameters:
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      responses:
        2XX:
          $ref: '#/components/responses/ODataCountResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
  /drives/{drive-id}/items:
    description: Provides operations to manage the items property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    get:
      tags:
      - drives.driveItem
      summary: 'Microsoft Graph drive: sharedWithMe (deprecated)'
      description: Get a list of driveItem objects shared with the owner of a drive. The driveItems returned from the sharedWithMe method always include the remoteItem facet that indicates they are items from a different drive.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/drive-sharedwithme?view=graph-rest-1.0
      operationId: drives.ListItems
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.driveItemCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Create new navigation property to items for drives
      operationId: drives.CreateItems
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.driveItem'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}:
    description: Provides operations to manage the items property of the microsoft.graph.drive entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get items from drives
      description: All items contained in the drive. Read-only. Nullable.
      operationId: drives.GetItems
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Update the navigation property items in drives
      operationId: drives.UpdateItems
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.driveItem'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.driveItem'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Delete navigation property items for drives
      operationId: drives.DeleteItems
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}/analytics:
    description: Provides operations to manage the analytics property of the microsoft.graph.driveItem entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get analytics from drives
      description: Analytics about the view activities that took place on this item.
      operationId: drives.items.GetAnalytics
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemAnalytics'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Update the navigation property analytics in drives
      operationId: drives.items.UpdateAnalytics
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.itemAnalytics'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemAnalytics'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Delete navigation property analytics for drives
      operationId: drives.items.DeleteAnalytics
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}/analytics/allTime:
    description: Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get itemAnalytics
      description: "Get itemAnalytics about the views that took place under this resource.\r\nThe itemAnalytics resource is a convenient way to get activity stats for allTime and the lastSevenDays.\r\nFor a custom time range or interval, use the getActivitiesByInterval API."
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/itemanalytics-get?view=graph-rest-1.0
      operationId: drives.items.analytics.GetAllTime
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats:
    description: Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get itemActivityStats from drives
      operationId: drives.items.analytics.ListItemActivityStats
      parameters:
      - $ref: '#/components/parameters/top'
      - $ref: '#/components/parameters/skip'
      - $ref: '#/components/parameters/search'
      - $ref: '#/components/parameters/filter'
      - $ref: '#/components/parameters/count'
      - name: $orderby
        in: query
        description: Order items by property values
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          $ref: '#/components/responses/microsoft.graph.itemActivityStatCollectionResponse'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
      x-ms-docs-operation-type: operation
    post:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Create new navigation property to itemActivityStats for drives
      operationId: drives.items.analytics.CreateItemActivityStats
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats/{itemActivityStat-id}:
    description: Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier of drive
      required: true
      schema:
        type: string
      x-ms-docs-key-type: drive
    - name: driveItem-id
      in: path
      description: The unique identifier of driveItem
      required: true
      schema:
        type: string
      x-ms-docs-key-type: driveItem
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    get:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Get itemActivityStats from drives
      operationId: drives.items.analytics.GetItemActivityStats
      parameters:
      - name: $select
        in: query
        description: Select properties to be returned
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      - name: $expand
        in: query
        description: Expand related entities
        style: form
        explode: false
        schema:
          uniqueItems: true
          type: array
          items:
            type: string
      responses:
        2XX:
          description: Retrieved navigation property
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Update the navigation property itemActivityStats in drives
      operationId: drives.items.analytics.UpdateItemActivityStats
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivityStat'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - drives.driveItem
      summary: Microsoft Graph Delete navigation property itemActivityStats for drives
      operationId: drives.items.analytics.DeleteItemActivityStats
      parameters:
      - name: If-Match
        in: header
        description: ETag
        schema:
          type: string
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /drives/{drive-id}/items/{driveItem-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities:
    description: Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity.
    parameters:
    - name: drive-id
      in: path
      description: The unique identifier 

# --- truncated at 32 KB (3083 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/microsoft-graph/refs/heads/main/openapi/microsoft-graph-drives-driveitem-api-openapi.yml