Leave a channel
This action allows one or more members to leave a group channel. To let a user leave all of their group channels at once, use the leave group channels API instead.
Since this API can't be called for a deactivated user, ensure that the
leave_all_when_deactivated property of the user is set to its default value of
true to let the user leave all joined group channels upon deactivation.
The following table lists the parameters that this action supports.
Specifies the URL of a channel.
The following table lists the properties of an HTTP request that this action supports.
array of strings
Specifies an array of one or more unique IDs of members to leave the channel.
Determines whether to have all members leave the channel. If set to
Determines whether to remove a user from the channel's operator list if the user who is leaving the channel is an operator. (Default:
Specifies the reason for leaving a channel. Acceptable values are
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.