Microsoft Graph Teams.channel API

The Teams.channel API from Microsoft Graph — 118 operation(s) for teams.channel.

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-teams-channel-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Microsoft Graph Admin Admin.admin Teams.channel 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: Teams.channel
paths:
  /teams/{team-id}/channels/{channel-id}/members:
    description: Provides operations to manage the members property of the microsoft.graph.channel entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    x-ms-docs-grouped-path:
    - /teams/{team-id}/primaryChannel/members
    get:
      tags:
      - Teams.channel
      summary: Microsoft Graph List members of a channel
      description: Get a list of members in a channel, including direct members of standard, private, and shared channels. Use the List allMembers API to retrieve both direct and indirect members of a shared channel. This method supports federation. Only a user who is a member of the shared channel can retrieve the channel member list.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-list-members?view=graph-rest-1.0
      operationId: teams.channels.ListMembers
      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.conversationMemberCollectionResponse'
        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:
      - Teams.channel
      summary: Microsoft Graph Add member to channel
      description: Add a conversationMember to a channel. This operation is allowed only for channels with a membershipType value of private or shared.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-post-members?view=graph-rest-1.0
      operationId: teams.channels.CreateMembers
      requestBody:
        description: New navigation property
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.conversationMember'
        required: true
      responses:
        2XX:
          description: Created navigation property.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.conversationMember'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
  /teams/{team-id}/channels/{channel-id}/members/{conversationMember-id}:
    description: Provides operations to manage the members property of the microsoft.graph.channel entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    - name: conversationMember-id
      in: path
      description: The unique identifier of conversationMember
      required: true
      schema:
        type: string
      x-ms-docs-key-type: conversationMember
    x-ms-docs-grouped-path:
    - /teams/{team-id}/primaryChannel/members/{conversationMember-id}
    get:
      tags:
      - Teams.channel
      summary: Microsoft Graph Get member of channel
      description: Get a conversationMember from a channel.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-get-members?view=graph-rest-1.0
      operationId: teams.channels.GetMembers
      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.conversationMember'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    patch:
      tags:
      - Teams.channel
      summary: Microsoft Graph Update member in channel
      description: Update the role of a conversationMember in a channel. This operation is allowed only for channels with a membershipType value of private or shared.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-update-members?view=graph-rest-1.0
      operationId: teams.channels.UpdateMembers
      requestBody:
        description: New navigation property values
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/microsoft.graph.conversationMember'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/microsoft.graph.conversationMember'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: operation
    delete:
      tags:
      - Teams.channel
      summary: Microsoft Graph Remove member from channel
      description: Delete a conversationMember from a channel. This operation is allowed only for channels with a membershipType value of private or shared.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-delete-members?view=graph-rest-1.0
      operationId: teams.channels.DeleteMembers
      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
  /teams/{team-id}/channels/{channel-id}/members/$count:
    description: Provides operations to count the resources in the collection.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    get:
      tags:
      - Teams.channel
      summary: Microsoft Graph Get the number of the resource
      operationId: teams.channels.members.GetCount-8e98
      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'
  /teams/{team-id}/channels/{channel-id}/members/add:
    description: Provides operations to call the add method.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    x-ms-docs-grouped-path:
    - /teams/{team-id}/channels/{channel-id}/allMembers/add
    - /teams/{team-id}/members/add
    - /teams/{team-id}/primaryChannel/allMembers/add
    - /teams/{team-id}/primaryChannel/members/add
    post:
      tags:
      - Teams.channel
      summary: Microsoft Graph Invoke action add
      description: Add multiple members in a single request to a team. The response provides details about which memberships could and couldn't be created.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/conversationmembers-add?view=graph-rest-1.0
      operationId: teams.team.channels.channel.members.add
      requestBody:
        description: Action parameters
        content:
          application/json:
            schema:
              type: object
              properties:
                values:
                  type: array
                  items:
                    $ref: '#/components/schemas/microsoft.graph.conversationMember'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                type: object
                allOf:
                - $ref: '#/components/schemas/BaseCollectionPaginationCountResponse'
                - type: object
                  properties:
                    value:
                      type: array
                      items:
                        $ref: '#/components/schemas/microsoft.graph.actionResultPart'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
  /teams/{team-id}/channels/{channel-id}/members/remove:
    description: Provides operations to call the remove method.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    x-ms-docs-grouped-path:
    - /teams/{team-id}/channels/{channel-id}/allMembers/remove
    - /teams/{team-id}/members/remove
    - /teams/{team-id}/primaryChannel/allMembers/remove
    - /teams/{team-id}/primaryChannel/members/remove
    post:
      tags:
      - Teams.channel
      summary: Microsoft Graph Invoke action remove
      description: Remove multiple members from a team in a single request. The response provides details about which memberships could and couldn't be removed.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/conversationmember-remove?view=graph-rest-1.0
      operationId: teams.team.channels.channel.members.remove
      requestBody:
        description: Action parameters
        content:
          application/json:
            schema:
              type: object
              properties:
                values:
                  type: array
                  items:
                    $ref: '#/components/schemas/microsoft.graph.conversationMember'
        required: true
      responses:
        2XX:
          description: Success
          content:
            application/json:
              schema:
                type: object
                allOf:
                - $ref: '#/components/schemas/BaseCollectionPaginationCountResponse'
                - type: object
                  properties:
                    value:
                      type: array
                      items:
                        $ref: '#/components/schemas/microsoft.graph.actionResultPart'
        4XX:
          $ref: '#/components/responses/error'
        5XX:
          $ref: '#/components/responses/error'
      x-ms-docs-operation-type: action
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
        operationName: listMore
  /teams/{team-id}/channels/{channel-id}/messages:
    description: Provides operations to manage the messages property of the microsoft.graph.channel entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    x-ms-docs-grouped-path:
    - /teams/{team-id}/primaryChannel/messages
    get:
      tags:
      - Teams.channel
      summary: Microsoft Graph List channel messages
      description: Retrieve the list of messages (without the replies) in a channel of a team.  To get the replies for a message, call the list message replies or the get message reply API.  This method supports federation. To list channel 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/channel-list-messages?view=graph-rest-1.0
      operationId: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Send chatMessage in channel
      description: Send a new chatMessage in the specified channel.
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/channel-post-messages?view=graph-rest-1.0
      operationId: teams.channels.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
  /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}:
    description: Provides operations to manage the messages property of the microsoft.graph.channel entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    - 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:
    - /teams/{team-id}/primaryChannel/messages/{chatMessage-id}
    get:
      tags:
      - Teams.channel
      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: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Update chatMessage
      description: "Update a chatMessage object. \r\nExcept for the policyViolation property, all properties of a chatMessage can be updated in delegated permissions scenarios.\r\nOnly the policyViolation property of a chatMessage can be updated in application permissions scenarios. The update only works for chats where members are Microsoft Teams users. If one of the participants is using Skype, the operation fails. This method doesn't support federation. Only the user in the tenant who sent the message can perform data loss prevention (DLP) updates on the specified chat message."
      externalDocs:
        description: Find more info here
        url: https://learn.microsoft.com/graph/api/chatmessage-update?view=graph-rest-1.0
      operationId: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Delete navigation property messages for teams
      operationId: teams.channels.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
  /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents:
    description: Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    - 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:
    - /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents
    - /teams/{team-id}/primaryChannel/messages/{chatMessage-id}/hostedContents
    - /teams/{team-id}/primaryChannel/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents
    get:
      tags:
      - Teams.channel
      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: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Create new navigation property to hostedContents for teams
      operationId: teams.channels.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
  /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}:
    description: Provides operations to manage the hostedContents property of the microsoft.graph.chatMessage entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    - 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:
    - /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}
    - /teams/{team-id}/primaryChannel/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}
    - /teams/{team-id}/primaryChannel/messages/{chatMessage-id}/replies/{chatMessage-id1}/hostedContents/{chatMessageHostedContent-id}
    get:
      tags:
      - Teams.channel
      summary: Microsoft Graph Get hostedContents from teams
      description: Content in a message hosted by Microsoft Teams - for example, images or code snippets.
      operationId: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Update the navigation property hostedContents in teams
      operationId: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Delete navigation property hostedContents for teams
      operationId: teams.channels.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
  /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/{chatMessageHostedContent-id}/$value:
    description: Provides operations to manage the media for the team entity.
    parameters:
    - name: team-id
      in: path
      description: The unique identifier of team
      required: true
      schema:
        type: string
      x-ms-docs-key-type: team
    - name: channel-id
      in: path
      description: The unique identifier of channel
      required: true
      schema:
        type: string
      x-ms-docs-key-type: channel
    - 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:
      - Teams.channel
      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: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Update media content for the navigation property hostedContents in teams
      description: The unique identifier for an entity. Read-only.
      operationId: teams.channels.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:
      - Teams.channel
      summary: Microsoft Graph Delete media content for the navigation property hostedContents in teams
      description: The unique identifier for an entity. Read-only.
      operationId: teams.channels.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'
  /teams/{team-id}/channels/{channel-id}/messages/{chatMessage-id}/hostedContents/$count:
    descript

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