Microsoft Graph chats.chatMessage API

The chats.chatMessage API from Microsoft Graph — 24 operation(s) for chats.chatmessage.

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-chats-chatmessage-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Graph Admin Admin.admin chats.chatMessage 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: chats.chatMessage
paths:
  /chats/{chat-id}/messages:
    description: Provides operations to manage the messages property of the microsoft.graph.chat entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph List messages in a chat
      description: Retrieve the list of messages in a chat. This method supports federation. To list chat messages in application context, the request must be made from the tenant that the channel owner belongs to (represented by the tenantId property on the channel).
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chat-list-messages?view=graph-rest-1.0
      operationId: chats.ListMessages
      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.chatMessageCollectionResponse'
        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:
      - chats.chatMessage
      summary: Microsoft Graph Send message in a chat
      description: Send a new chatMessage in the specified chat. This API can't create a new chat; you must use the list chats method to retrieve the ID of an existing chat before you can create a chat message.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chat-post-messages?view=graph-rest-1.0
      operationId: chats.CreateMessages
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessage'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /chats/{chat-id}/messages/{chatMessage-id}:
    description: Provides operations to manage the messages property of the microsoft.graph.chat entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get chatMessage in a channel or chat
      description: Retrieve a single message or a message reply in a channel or a chat.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-get?view=graph-rest-1.0
      operationId: chats.GetMessages
      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.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Update the navigation property messages in chats
      operationId: chats.UpdateMessages
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessage'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Delete navigation property messages for chats
      operationId: chats.DeleteMessages
      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
  /chats/{chat-id}/messages/{chatMessage-id}/hostedContents:
    description: Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph List hostedContents
      description: Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
      operationId: chats.messages.ListHostedContents
      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.chatMessageHostedContentCollectionResponse'
        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:
      - chats.chatMessage
      summary: Microsoft Graph Create new navigation property to hostedContents for chats
      operationId: chats.messages.CreateHostedContents
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}:
    description: Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    - name: chatMessageHostedContent-id
      in: path
      description: The unique identifier of chatMessageHostedContent
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessageHostedContent
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get chatMessageHostedContent
      description: Retrieve the properties and relationships of chatMessageHostedContent object.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessagehostedcontent-get?view=graph-rest-1.0
      operationId: chats.messages.GetHostedContents
      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.chatMessageHostedContent'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Update the navigation property hostedContents in chats
      operationId: chats.messages.UpdateHostedContents
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Delete navigation property hostedContents for chats
      operationId: chats.messages.DeleteHostedContents
      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
  /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value:
    description: Provides operations to manage the media for the chat entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    - name: chatMessageHostedContent-id
      in: path
      description: The unique identifier of chatMessageHostedContent
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessageHostedContent
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph List hostedContents
      description: Retrieve the list of chatMessageHostedContent objects from a message. This API only lists the hosted content objects. To get the content bytes, see get chatmessage hosted content.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-list-hostedcontents?view=graph-rest-1.0
      operationId: chats.messages.GetHostedContentsContent
      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:
      - chats.chatMessage
      summary: Microsoft Graph Update media content for the navigation property hostedContents in chats
      description: The unique identifier for an entity. Read-only.
      operationId: chats.messages.UpdateHostedContentsContent
      requestBody:
        description: New media content.
        content:
          application/octet-stream:
            schema:
              type: string
              format: binary
        required: true
      responses:
        2XX:
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
    delete:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Delete media content for the navigation property hostedContents in chats
      description: The unique identifier for an entity. Read-only.
      operationId: chats.messages.DeleteHostedContentsContent
      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'
  /chats/{chat-id}/messages/{chatMessage-id}/hostedContents/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get the number of the resource
      operationId: chats.messages.hostedContents.GetCount-a167
      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'
  /chats/{chat-id}/messages/{chatMessage-id}/setReaction:
    description: Provides operations to call the setReaction method.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/setReaction
    post:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Invoke action setReaction
      operationId: chats.chat.messages.chatMessage.setReaction
      requestBody:
        description: Action parameters
        content:
          application/json:
            schema:
              type: object
              properties:
                reactionType:
                  type: string
                  nullable: true
        required: true
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
  /chats/{chat-id}/messages/{chatMessage-id}/softDelete:
    description: Provides operations to call the softDelete method.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/softDelete
    post:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Invoke action softDelete
      description: Delete a single chatMessage or a chat message reply in a channel or a chat.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-softdelete?view=graph-rest-1.0
      operationId: chats.chat.messages.chatMessage.softDelete
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
  /chats/{chat-id}/messages/{chatMessage-id}/undoSoftDelete:
    description: Provides operations to call the undoSoftDelete method.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/undoSoftDelete
    post:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Invoke action undoSoftDelete
      description: Undo soft deletion of a single chatMessage or a chat message reply in a channel or a chat.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-undosoftdelete?view=graph-rest-1.0
      operationId: chats.chat.messages.chatMessage.undoSoftDelete
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
  /chats/{chat-id}/messages/{chatMessage-id}/unsetReaction:
    description: Provides operations to call the unsetReaction method.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/unsetReaction
    post:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Invoke action unsetReaction
      operationId: chats.chat.messages.chatMessage.unsetReaction
      requestBody:
        description: Action parameters
        content:
          application/json:
            schema:
              type: object
              properties:
                reactionType:
                  type: string
                  nullable: true
        required: true
      responses:
        '204':
          description: Success
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
  /chats/{chat-id}/messages/{chatMessage-id}/replies:
    description: Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get replies from chats
      description: Replies for a specified message. Supports $expand for channel messages.
      operationId: chats.messages.ListReplies
      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.chatMessageCollectionResponse'
        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:
      - chats.chatMessage
      summary: Microsoft Graph Create new navigation property to replies for chats
      operationId: chats.messages.CreateReplies
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessage'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}:
    description: Provides operations to manage the replies property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    - name: chatMessage-id1
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get replies from chats
      description: Replies for a specified message. Supports $expand for channel messages.
      operationId: chats.messages.GetReplies
      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.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Update the navigation property replies in chats
      operationId: chats.messages.UpdateReplies
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessage'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessage'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Delete navigation property replies for chats
      operationId: chats.messages.DeleteReplies
      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
  /chats/{chat-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents:
    description: Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: chat-id
      in: path
      description: The unique identifier of chat
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chat
    - name: chatMessage-id
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    - name: chatMessage-id1
      in: path
      description: The unique identifier of chatMessage
      required: true
      schema:
        type: string
      x-ms-docs-key-type: chatMessage
    x-ms-docs-grouped-path:
    - /chats/{chat-id}/messages/{chatMessage-id}/hostedContents
    get:
      tags:
      - chats.chatMessage
      summary: Microsoft Graph Get hostedContents from chats
      description: Content in a message hosted by Microsoft Teams - for example, images or code snippets.
      operationId: chats.messages.replies.ListHostedContents
      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.chatMessageHostedContentCollectionResponse'
        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:
      - chats.chatMessage
      summary: Microsoft Graph Create new navigation property to hostedContents for chats
      operationId: chats.messages.replies.CreateHostedContents
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.chatMessageHostedContent'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /chats/{chat-id

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