Namespace: microsoft.graph
Teams are made up of channels, which are the conversations you have with your teammates. Each channel is dedicated to a specific topic, department, or project. Channels are where the work actually gets done - where text, audio, and video conversations open to the whole team happen,
where files are shared, and where tabs are added.
Methods
Properties
| Property |
Type |
Description |
| createdDateTime |
dateTimeOffset |
Read only. Timestamp at which the channel was created. |
| description |
String |
Optional textual description for the channel. |
| displayName |
String |
Channel name as it will appear to the user in Microsoft Teams. The maximum length is 50 characters. |
| email |
String |
The email address for sending messages to the channel. Read-only. |
| id |
String |
The channel's unique identifier. Read-only. |
| isArchived |
Boolean |
Indicates whether the channel is archived. Read-only. |
| isFavoriteByDefault |
Boolean |
Indicates whether the channel should be marked as recommended for all members of the team to show in their channel list. Note: All recommended channels automatically show in the channels list for education and frontline worker users. The property can only be set programmatically via the Create team method. The default value is false. |
| layoutType |
channelLayoutType |
The layout type of the channel. It can be set during creation and updated later. The possible values are: post, chat, unknownFutureValue. The default value is post. Channels with the post layout use a traditional post‑reply conversation format, and channels with the chat layout provide a chat‑like threading experience similar to group chats. |
| membershipType |
channelMembershipType |
The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Use the Prefer: include-unknown-enum-members request header to get the following members in this evolvable enum: shared. |
| migrationMode |
migrationMode |
Indicates whether a channel is in migration mode. This value is null for channels that never entered migration mode. The possible values are: inProgress, completed, unknownFutureValue. |
| originalCreatedDateTime |
dateTimeOffset |
Timestamp of the original creation time for the channel. The value is null if the channel never entered migration mode. |
| tenantId |
string |
The ID of the Microsoft Entra tenant. |
| webUrl |
String |
A hyperlink that will go to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only. |
| summary |
channelSummary |
Contains summary information about the channel, including number of owners, members, guests, and an indicator for members from other tenants. The summary property will only be returned if it is specified in the $select clause of the Get channel method. |
channelMembershipType values
| Member |
Description |
| standard |
Channel inherits the list of members of the parent team. |
| private |
Channel can have members that are a subset of all the members on the parent team. |
| unknownFutureValue |
Evolvable enumeration sentinel value. Do not use. |
| shared |
Members can be directly added to the channel without adding them to the team. |
migrationMode values
| Member |
Description |
| inProgress |
The channel or chat entered migration mode. |
| completed |
The channel or chat is out of migration mode. |
| unknownFutureValue |
Evolvable enumeration sentinel value. Don't use. |
channelLayoutType values
| Member |
Description |
| post |
Traditional post-reply conversation format. Posts are displayed in a structured format with replies nested under the original post. Represents the default layout type. |
| chat |
Chat-like threading experience similar to group chats. Messages are displayed in a continuous flow with support for threaded conversations on specific topics. |
| unknownFutureValue |
Evolvable enumeration sentinel value. Don't use. |
Instance attributes
Instance attributes are properties with special behaviors. These properties are temporary and either a) define behavior the service should perform or b) provide short-term property values, like a download URL for an item that expires.
| Property name |
Type |
Description |
| @microsoft.graph.channelCreationMode |
string |
Indicates that the channel is in migration state and is currently being used for migration purposes. It accepts one value: migration. |
Note: channelCreationMode is an enum that takes the value migration.
For a POST request example, see Request (create channel in migration state).
Relationships
| Relationship |
Type |
Description |
| allMembers |
conversationMember collection |
A collection of membership records associated with the channel, including both direct and indirect members of shared channels. |
| enabledApps |
teamsApp collection |
A collection of enabled apps in the channel. |
| filesFolder |
driveItem |
Metadata for the location where the channel's files are stored. |
| members |
conversationMember collection |
A collection of membership records associated with the channel. |
| messages |
chatMessage collection |
A collection of all the messages in the channel. A navigation property. Nullable. |
| operations |
teamsAsyncOperation collection |
The async operations that ran or are running on this team. |
| sharedWithTeams |
sharedWithChannelTeamInfo collection |
A collection of teams with which a channel is shared. |
| tabs |
teamsTab collection |
A collection of all the tabs in the channel. A navigation property. |
JSON representation
The following JSON representation shows the resource type.
{
"createdDateTime": "String (timestamp)",
"description": "String",
"displayName": "String",
"email": "String",
"id": "String (identifier)",
"isArchived": "Boolean",
"isFavoriteByDefault": "Boolean",
"layoutType": "String",
"membershipType": "String",
"migrationMode": "String",
"originalCreatedDateTime": "String (timestamp)",
"webUrl": "String"
}
Related content