Chat / Platform API
Current version: v3
    Chat Platform API v3
    Chat Platform API
    Chat
    Platform API
    Home
    /
    Chat
    /
    Platform API

    Add emoji categories

    Adds an array of new emoji categories to the application.


    HTTP request

    POST  https://api-{application_id}.sendbird.com/v3/emoji_categories
    

    Request body

    The following table lists the properties of an HTTP request that this action supports.

    Required
    Property nameTypeDescription

    emoji_categories[]

    array of objects

    Specifies an array of new emoji categories to register, including their names and URLs.

    (emoji_category).name

    string

    Specifies the name of each new emoji category.

    (emoji_category).url

    string

    Specifies the URL of each new emoji category.

    {
        "emoji_categories": [
            {
                "id": 2,
                "name": "nature",
                "url": "http://emojicategory.com/nature_category"
            },
            {
                "id": 3,
                "name": "animal",
                "url": "http://emojicategory.com/animal_category"
            },
            ... # More emoji categories
        ]
    }
    

    Response

    If successful, this action returns an array of the newly added emoji category resources in the response body.

    In the case of an error, an error object is returned. A detailed list of error codes is available here.