Add emojis
This action adds emojis to your application. Since all emojis belong to emoji categories, you should create an emoji category before you add emojis.
If you already have emoji categories in your application, you can check their IDs by using the list all emoji categories API.
HTTP request
Request body
The following table lists the properties of an HTTP request that this action supports.
Required
Property name | Type | Description |
---|---|---|
emoji_category_id | int | Specifies the unique ID of the emoji category that the emojis belong to. This ID is automatically generated by Sendbird when you add an emoji category to your application. |
emojis[] | array of objects | Specifies an array of emojis to register. |
(emoji).key | string | Specifies the string key of the emoji. The length is limited to 30 characters. |
(emoji).url | string | Specifies the image URL of the emoji. |
Responses
If successful, this action returns an array of the newly added emoji resources in the response body.
Error
In the case of an error, an error object like below is returned. See the error codes section for more details.