Microsoft Graph sites.itemAnalytics API

The sites.itemAnalytics API from Microsoft Graph — 12 operation(s) for sites.itemanalytics.

Operations 23

GET /sites/{site-id}/analytics Microsoft Graph Get analytics from sites #
PATCH /sites/{site-id}/analytics Microsoft Graph Update the navigation property analytics in sites #
DELETE /sites/{site-id}/analytics Microsoft Graph Delete navigation property analytics for sites #
GET /sites/{site-id}/analytics/allTime Microsoft Graph Get allTime from sites #
GET /sites/{site-id}/analytics/itemActivityStats Microsoft Graph Get itemActivityStats from sites #
POST /sites/{site-id}/analytics/itemActivityStats Microsoft Graph Create new navigation property to itemActivityStats for sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id} Microsoft Graph Get itemActivityStats from sites #
PATCH /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id} Microsoft Graph Update the navigation property itemActivityStats in sites #
DELETE /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id} Microsoft Graph Delete navigation property itemActivityStats for sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities Microsoft Graph Get activities from sites #
POST /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities Microsoft Graph Create new navigation property to activities for sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id} Microsoft Graph Get activities from sites #
PATCH /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id} Microsoft Graph Update the navigation property activities in sites #
DELETE /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id} Microsoft Graph Delete navigation property activities for sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem Microsoft Graph Get driveItem from sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content Microsoft Graph Get content for the navigation property driveItem from sites #
PUT /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content Microsoft Graph Update content for the navigation property driveItem in sites #
GET /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/$count Microsoft Graph Get the number of the resource #
GET /sites/{site-id}/analytics/itemActivityStats/$count Microsoft Graph Get the number of the resource #
GET /sites/{site-id}/analytics/lastSevenDays Microsoft Graph Get lastSevenDays from sites #
GET /sites/{site-id}/getByPath(path='{path}')/analytics Microsoft Graph Get analytics from sites #
PATCH /sites/{site-id}/getByPath(path='{path}')/analytics Microsoft Graph Update the navigation property analytics in sites #
DELETE /sites/{site-id}/getByPath(path='{path}')/analytics Microsoft Graph Delete navigation property analytics for sites #

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

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/microsoft-graph-sites-itemanalytics-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

microsoft-graph-sites-itemanalytics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Graph Admin Admin.admin Sites.item Analytics 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: sites.itemAnalytics
  x-ms-docs-toc-type: page
paths:
  /sites/{site-id}/analytics:
    description: Provides operations to manage the analytics property of the microsoft.graph.site entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    x-ms-docs-grouped-path:
    - /sites/{site-id}/getByPath(path='{path}')/analytics
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get analytics from sites
      description: Analytics about the view activities that took place on this site.
      operationId: sites.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Update the navigation property analytics in sites
      operationId: sites.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Delete navigation property analytics for sites
      operationId: sites.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
  /sites/{site-id}/analytics/allTime:
    description: Provides operations to manage the allTime property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get allTime from sites
      operationId: sites.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
  /sites/{site-id}/analytics/itemActivityStats:
    description: Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get itemActivityStats from sites
      operationId: sites.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Create new navigation property to itemActivityStats for sites
      operationId: sites.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
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}:
    description: Provides operations to manage the itemActivityStats property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get itemActivityStats from sites
      operationId: sites.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Update the navigation property itemActivityStats in sites
      operationId: sites.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Delete navigation property itemActivityStats for sites
      operationId: sites.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
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities:
    description: Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get activities from sites
      description: Exposes the itemActivities represented in this itemActivityStat resource.
      operationId: sites.analytics.itemActivityStats.ListActivities
      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.itemActivityCollectionResponse'
        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:
      - sites.itemAnalytics
      summary: Microsoft Graph Create new navigation property to activities for sites
      operationId: sites.analytics.itemActivityStats.CreateActivities
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.itemActivity'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivity'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}:
    description: Provides operations to manage the activities property of the microsoft.graph.itemActivityStat entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    - name: itemActivity-id
      in: path
      description: The unique identifier of itemActivity
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivity
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get activities from sites
      description: Exposes the itemActivities represented in this itemActivityStat resource.
      operationId: sites.analytics.itemActivityStats.GetActivities
      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.itemActivity'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Update the navigation property activities in sites
      operationId: sites.analytics.itemActivityStats.UpdateActivities
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.itemActivity'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.itemActivity'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Delete navigation property activities for sites
      operationId: sites.analytics.itemActivityStats.DeleteActivities
      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
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem:
    description: Provides operations to manage the driveItem property of the microsoft.graph.itemActivity entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    - name: itemActivity-id
      in: path
      description: The unique identifier of itemActivity
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivity
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get driveItem from sites
      description: Exposes the driveItem that was the target of this activity.
      operationId: sites.analytics.itemActivityStats.activities.GetDriveItem
      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
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/{itemActivity-id}/driveItem/content:
    description: Provides operations to manage the media for the site entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    - name: itemActivity-id
      in: path
      description: The unique identifier of itemActivity
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivity
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get content for the navigation property driveItem from sites
      description: The content stream, if the item represents a file.
      operationId: sites.analytics.itemActivityStats.activities.GetDriveItemContent
      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:
      - sites.itemAnalytics
      summary: Microsoft Graph Update content for the navigation property driveItem in sites
      description: The content stream, if the item represents a file.
      operationId: sites.analytics.itemActivityStats.activities.UpdateDriveItemContent
      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'
  /sites/{site-id}/analytics/itemActivityStats/{itemActivityStat-id}/activities/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: itemActivityStat-id
      in: path
      description: The unique identifier of itemActivityStat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: itemActivityStat
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get the number of the resource
      operationId: sites.analytics.itemActivityStats.activities.GetCount-972d
      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'
  /sites/{site-id}/analytics/itemActivityStats/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get the number of the resource
      operationId: sites.analytics.itemActivityStats.GetCount-c4ac
      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'
  /sites/{site-id}/analytics/lastSevenDays:
    description: Provides operations to manage the lastSevenDays property of the microsoft.graph.itemAnalytics entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get lastSevenDays from sites
      operationId: sites.analytics.GetLastSevenDays
      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
  /sites/{site-id}/getByPath(path='{path}')/analytics:
    description: Provides operations to manage the analytics property of the microsoft.graph.site entity.
    parameters:
    - name: site-id
      in: path
      description: The unique identifier of site
      required: true
      schema:
        type: string
      x-ms-docs-key-type: site
    - name: path
      in: path
      description: 'Usage: path=''{path}'''
      required: true
      schema:
        type: string
        nullable: true
    x-ms-docs-grouped-path:
    - /sites/{site-id}/analytics
    get:
      tags:
      - sites.itemAnalytics
      summary: Microsoft Graph Get analytics from sites
      description: Analytics about the view activities that took place on this site.
      operationId: sites.getByPath.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Update the navigation property analytics in sites
      operationId: sites.getByPath.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:
      - sites.itemAnalytics
      summary: Microsoft Graph Delete navigation property analytics for sites
      operationId: sites.getByPath.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
components:
  schemas:
    microsoft.graph.listInfo:
      title: listInfo
      required:
      - '@odata.type'
      type: object
      properties:
        contentTypesEnabled:
          type: boolean
          description: If true, indicates that content types are enabled for this list.
          nullable: true
        hidden:
          type: boolean
          description: If true, indicates that the list isn't normally visible in the SharePoint user experience.
          nullable: true
        template:
          type: string
          description: An enumerated value that represents the base list template used in creating the list. Possible values include documentLibrary, genericList, task, survey, announcements, contacts, and more.
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.sizeRange:
      title: sizeRange
      required:
      - '@odata.type'
      type: object
      properties:
        maximumSize:
          maximum: 2147483647
          minimum: -2147483648
          type: number
          description: The maximum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.
          format: int32
          nullable: true
        minimumSize:
          maximum: 2147483647
          minimum: -2147483648
          type: number
          description: The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply.
          format: int32
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.virtualEventExternalRegistrationInformation:
      title: virtualEventExternalRegistrationInformation
      required:
      - '@odata.type'
      type: object
      properties:
        referrer:
          type: string
          description: A URL or string that represents the location from which the registrant registered. Optional.
          nullable: true
        registrationId:
          type: string
          description: The identifier for a virtualEventExternalRegistrationInformation object. Optional. If set, the maximum supported length is 256 characters.
          nullable: true
        '@odata.type':
          type: string
    microsoft.graph.windowsDeviceHealthState:
      title: windowsDeviceHealthState
      enum:
      - clean
      - fullScanPending
      - rebootPending
      - manualStepsPending
      - offlineScanPending
      - critical
      type: string
      description: Computer endpoint protection state
      x-ms-enum-flags:
        isFlags: true
      x-ms-enum:
        name: windowsDeviceHealthState
        modelAsString: false
        values:
        - value: clean
          description: Computer is clean and no action is required
          name: clean
        - value: fullScanPending
          description: Computer is in pending full scan state
          name: fullScanPending
        - value: rebootPending
          description: Computer is in pending reboot state
          name: rebootPending
        - value: manualStepsPending
          description: Computer is in pending manual steps state
          name: manualStepsPending
        - value: offlineScanPending
          description: Computer is in pending offline scan state
          name: offlineScanPending
        - value: critical
          description: Computer is in critical failure state
          name: critical
    microsoft.graph.identity:
      title: identity
      required:
      - '@odata.type'
      type: object
      properties:
        displayName:
          type: string
          description: The display name of the identity.For drive items, the display name might not always be available or up to date. For example, if a user changes their display name the API might show the new value in a future response, but the items associated with the user don't show up as changed when using delta.
          nullable: true
        id:
          type: string
          description: Unique identifier for the identity or actor. For example, in the access reviews decisions API, this property might record the id of the principal, that is, the group, user, or application that's subject to review.
          nullable: true
        '@odata.type':
          type: string
      discriminator:
        propertyName: '@odata.type'
        mapping:
          '#microsoft.graph.azureCommunicationServicesUserIdentity': '#/components/schemas/microsoft.graph.azureCommunicationServicesUserIdentity'
          '#microsoft.graph.communicationsApplicationIdentity': '#/components/schemas/microsoft.graph.communicationsApplicationIdentity'
          '#microsoft.graph.communicationsApplicationInstanceIdentity': '#/components/schemas/microsoft.graph.communicationsApplicationInstanceIdentity'
          '#microsoft.graph.communicationsEncryptedIdentity': '#/components/schemas/microsoft.graph.communicationsEncryptedIdentity'
          '#microsoft.graph.communicationsGuestIdentity': '#/components/schemas/microsoft.graph.communicationsGuestIdentity'
  

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