Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Important
APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Represents a custom emoji that was uploaded to the teamwork messaging of the organization. Custom emojis can be used in chat messages and channel messages.
Inherits from teamworkHostedContent.
Methods
| Method | Return type | Description |
|---|---|---|
| List | teamworkCustomEmoji collection | Get a list of custom emojis available in the teamwork messaging of the organization. |
| Create | teamworkCustomEmoji | Create a new custom emoji in the teamwork messaging of the organization, which adds the custom emoji to Teams for the tenant. |
| Get | teamworkCustomEmoji | Get a single custom emoji or the raw image content of a custom emoji by display name from the teamwork messaging of the organization. |
| Delete | None | Delete a custom emoji by display name from the teamwork messaging of the organization. |
Properties
| Property | Type | Description |
|---|---|---|
| contentBytes | Binary | The base64-encoded image content of the emoji. Supported formats include PNG and GIF. Inherited from teamworkHostedContent. |
| contentType | String | The media type of the custom emoji content, such as image/png or image/gif. Inherited from teamworkHostedContent. |
| createdBy | customEmojiFromIdentitySet | Identity of the user who created the emoji. |
| createdDateTime | DateTimeOffset | The date and time when the emoji was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2024, is 2024-01-01T00:00:00Z. |
| displayName | String | The unique display name of the custom emoji. This property is an alternate key and must not conflict with existing emoji names. |
| id | String | The service-generated identifier of the custom emoji. Inherited from teamworkHostedContent. |
Relationships
None.
JSON representation
The following JSON representation shows the resource type.
{
"@odata.type": "#microsoft.graph.teamworkCustomEmoji",
"id": "String (identifier)",
"contentBytes": "Binary",
"contentType": "String",
"displayName": "String",
"createdDateTime": "String (timestamp)",
"createdBy": {
"@odata.type": "microsoft.graph.customEmojiFromIdentitySet"
}
}