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

    Leave channels

    Copy link

    Makes a bot leave one or more group channels.


    HTTP request

    Copy link
    // 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

    Copy link

    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

    Copy link

    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.