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

    Register operators to an open channel

    You can register one or more operators to an open channel using this API.


    HTTP request

    POST https://api-{application_id}.sendbird.com/v3/open_channels/{channel_url}/operators
    

    Parameters

    The following table shows a parameter that this action supports.

    Required
    Parameter nameTypeDescription

    channel_url

    string

    Specifies the URL of the channel.


    Request body

    The following table shows a property of the HTTP request that this action supports.

    Required
    Property nameTypeDescription

    operator_ids[]

    array of strings

    Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100.

    {
        "operator_ids": ["Julia", "Katherine", "Cindy"]
    }
    

    Responses

    If successful, this action returns an empty response body.

    Error

    In the case of an error, an error object like below is returned. See the error codes section for more details.

    {
        "message": "\"User\" not found.",
        "code": 400201,
        "error": true
    }