Show / Hide Table of Contents

TeamsActivity.Send.Chat

Graph Methods

Type: A = Application Permission, D = Delegate Permission

Ver Type Method
Beta A POST /chats/{chatId}/sendActivityNotification

Application Permission

Id
Display String
Description

Resources

aadUserNotificationRecipient

Property Type Description
userId String Azure AD user identifier. Use the List users method to get this ID.

chat

Property Type Description
chatType chatType Specifies the type of chat. Possible values are: group, oneOnOne, meeting, unknownFutureValue.
createdDateTime dateTimeOffset Date and time at which the chat was created. Read-only.
id String The chat's unique identifier. Read-only.
lastUpdatedDateTime dateTimeOffset Date and time at which the chat was renamed or list of members were last changed. Read-only.
onlineMeetingInfo teamworkOnlineMeetingInfo Represents details about an online meeting. If the chat isn't associated with an online meeting, the property is empty. Read-only.
tenantId String The identifier of the tenant in which the chat was created. Read-only.
topic String (Optional) Subject or topic for the chat. Only available for group chats.
webUrl String The URL for the chat in Microsoft Teams. The URL should be treated as an opaque blob, and not parsed. Read-only.

chatMembersNotificationRecipient

Property Type Description
chatId String The chat's identifier.

chatMessage

Property Type Description
id String Read-only. Unique ID of the message.
replyToId string Read-only. ID of the parent chat message or root chat message of the thread. (Only applies to chat messages in channels, not chats.)
from chatMessageFromIdentitySet Details of the sender of the chat message. Can only be set during migration.
etag string Read-only. Version number of the chat message.
messageType chatMessageType The type of chat message. The possible values are: message, chatEvent, typing, unknownFutureValue, systemEventMessage. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: systemEventMessage.
createdDateTime dateTimeOffset Timestamp of when the chat message was created.
lastModifiedDateTime dateTimeOffset Read only. Timestamp when the chat message is created (initial setting) or modified, including when a reaction is added or removed.
lastEditedDateTime dateTimeOffset Read only. Timestamp when edits to the chat message were made. Triggers an "Edited" flag in the Teams UI. If no edits are made the value is null.
deletedDateTime dateTimeOffset Read only. Timestamp at which the chat message was deleted, or null if not deleted.
subject string The subject of the chat message, in plaintext.
body itemBody Plaintext/HTML representation of the content of the chat message. Representation is specified by the contentType inside the body. The content is always in HTML if the chat message contains a chatMessageMention.
summary string Summary text of the chat message that could be used for push notifications and summary views or fall back views. Only applies to channel chat messages, not chat messages in a chat.
attachments chatMessageAttachment collection References to attached objects like files, tabs, meetings etc.
mentions chatMessageMention collection List of entities mentioned in the chat message. Supported entities are: user, bot, team, and channel.
importance string The importance of the chat message. The possible values are: normal, high, urgent.
reactions chatMessageReaction collection Reactions for this chat message (for example, Like).
locale string Locale of the chat message set by the client. Always set to en-us.
policyViolation chatMessagePolicyViolation Defines the properties of a policy violation set by a data loss prevention (DLP) application.
chatId string If the message was sent in a chat, represents the identity of the chat.
channelIdentity channelIdentity If the message was sent in a channel, represents identity of the channel.
webUrl string Read-only. Link to the message in Microsoft Teams.
eventDetail eventMessageDetail Read-only. If present, represents details of an event that happened in a **c

itemBody

Property Type Description
content String The content of the item.
contentType bodyType The type of the content. Possible values are text and html.

keyValuePair

Property Type Description
name String Name for this key-value pair
value String Value for this key-value pair

teamworkActivityTopic

Property Type Description
source teamworkActivityTopicSource Type of source. Possible values are: entityUrl, text. For supported Microsoft Graph URLs, use entityUrl. For custom text, use text.
value String The topic value. If the value of the source property is entityUrl, this must be a Microsoft Graph URL. If the vaule is text, this must be a plain text value.
webUrl String The link the user clicks when they select the notification. Optional when **s

teamworkNotificationRecipient

In This Article
Back to top Created by merill | Submit feedback