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

    Leave channels

    Makes a bot leave one or more group channels.


    HTTP request

    // When leaving all channels
    DELETE https://api-{application_id}.sendbird.com/v3/bots/{bot_userid}/channels
    
    // When leaving a specific channel
    DELETE https://api-{application_id}.sendbird.com/v3/bots/{bot_userid}/channels/{channel_url}
    

    Parameters

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    bot_userid

    string

    Specifies the unique ID of a bot.

    channel_url

    string

    Specifies the URL of channels to leave.


    Response

    If successful, this action returns an empty response body. In the case of an error, an error object is returned. A detailed list of error codes is available here.