| title | teamworkHostedContent resource type |
|---|---|
| description | Represents rich content hosted by Microsoft Teams |
| author | RamjotSingh |
| ms.localizationpriority | medium |
| ms.subservice | teams |
| doc_type | resourcePageType |
| ms.date | 07/22/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Represents rich content like images and code snippets in Microsoft Teams. For rich content in channel and chat messages, see chatMessageHostedContent.
| Method | Return Type | Description |
|---|---|---|
| Get icon | teamworkHostedContent | Get the bytes of the hosted content backing a Teams app icon. |
| Property | Type | Description |
|---|---|---|
| contentBytes | Binary | Write only. Bytes for the hosted content (such as images). |
| contentType | String | Write only. Content type, such as image/png, image/jpg. |
| id | String | ID of the hosted content. |
None.
The following JSON representation shows the resource type.
{
"id": "String (identifier)",
"contentBytes": "Binary",
"contentType": "String"
}