Microsoft Graph sites.itemAnalytics API

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

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-sites-itemanalytics-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Graph Admin Admin.admin sites.itemAnalytics 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.richLongRunningOperation:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.longRunningOperation'
      - title: richLongRunningOperation
        required:
        - '@odata.type'
        type: object
        properties:
          error:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.publicError'
            - type: object
              nullable: true
            description: Error that caused the operation to fail.
          percentageComplete:
            maximum: 2147483647
            minimum: -2147483648
            type: number
            description: A value between 0 and 100 that indicates the progress of the operation.
            format: int32
            nullable: true
          resourceId:
            type: string
            description: The unique identifier for the result.
            nullable: true
          type:
            type: string
            description: The type of the operation.
            nullable: true
          '@odata.type':
            type: string
        description: The status of a long-running operation.
      x-ms-discriminator-value: '#microsoft.graph.richLongRunningOperation'
    microsoft.graph.workbookWorksheet:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.entity'
      - title: workbookWorksheet
        required:
        - '@odata.type'
        type: object
        properties:
          name:
            type: string
            description: The display name of the worksheet.
            nullable: true
          position:
            maximum: 2147483647
            minimum: -2147483648
            type: number
            description: The zero-based position of the worksheet within the workbook.
            format: int32
          visibility:
            type: string
            description: 'The visibility of the worksheet. The possible values are: Visible, Hidden, VeryHidden.'
          charts:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.workbookChart'
            description: The list of charts that are part of the worksheet. Read-only.
            x-ms-navigationProperty: true
          names:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.workbookNamedItem'
            description: The list of names that are associated with the worksheet. Read-only.
            x-ms-navigationProperty: true
          pivotTables:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.workbookPivotTable'
            description: The list of piot tables that are part of the worksheet.
            x-ms-navigationProperty: true
          protection:
            anyOf:
            - $ref: '#/components/schemas/microsoft.graph.workbookWorksheetProtection'
            - type: object
              nullable: true
            description: The sheet protection object for a worksheet. Read-only.
            x-ms-navigationProperty: true
          tables:
            type: array
            items:
              $ref: '#/components/schemas/microsoft.graph.workbookTable'
            description: The list of tables that are part of the worksheet. Read-only.
            x-ms-navigationProperty: true
          '@odata.type':
            type: string
      x-ms-discriminator-value: '#microsoft.graph.workbookWorksheet'
    microsoft.graph.phoneType:
      title: phoneType
      enum:
      - home
      - business
      - mobile
      - other
      - assistant
      - homeFax
      - businessFax
      - otherFax
      - pager
      - radio
      type: string
    microsoft.graph.profilePhoto:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.entity'
      - title: profilePhoto
        required:
        - '@odata.type'
        type: object
        properties:
          height:
            maximum: 2147483647
            minimum: -2147483648
            type: number
            description: The height of the photo. Read-only.
            format: int32
            nullable: true
          width:
            maximum: 2147483647
            minimum: -2147483648
            type: number
            description: The width of the photo. Read-only.
            format: int32
            nullable: true
          '@odata.type':
            type: string
      x-ms-discriminator-value: '#microsoft.graph.profilePhoto'
    microsoft.graph.teamworkHostedContent:
      allOf:
      - $ref: '#/components/schemas/microsoft.graph.entity'
      - title: teamworkHostedContent
        required:
        - '@odata.type'
        type: object
        properties:
          contentBytes:
            type: string
            description: Write only. Bytes for the hosted content (such as images).
            format: base64url
            nullable: true
          contentType:
            type: string
            description: Write only. Content type. such as image/png, image/jpg.
            nullable: true
      

# --- 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