/ Platform API
Platform API
    Chat Platform API v3
    Chat Platform API
    Chat Platform API
    Version 3

    Register a user as an operator to channels by custom channel types

    Copy link

    You can register a user as an operator to channels with specified custom channel types using this API.


    HTTP request

    Copy link
    POST https://api-{application_id}.sendbird.com/v3/users/{user_id}/operating_channel_custom_types
    

    Parameters

    Copy link

    The following table shows a parameter that this action supports.

    Required
    Parameter nameTypeDescription

    user_id

    string

    Specifies the unique ID of the user.


    Request body

    Copy link

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

    Required
    Property nameTypeDescription

    channel_custom_types[]

    array of objects

    Specifies an array of one or more custom channel types in order to register the user as an operator to channels with those channel types.

    {
        "channel_custom_types": ["movie", "music"]
    }
    

    Responses

    Copy link

    If successful, this action returns an empty response body.

    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
    }