The request allows the currently logged in user to leave the direct message conversation with the user denoted by the userID
.
Request to leave a direct message channel. The handler requires a POST request. An error is returned if the channel is not a direct message channel or the currently logged in user is not a member of the direct messages channel with the given channelID
.
# Request # Use user:password for authorization POST /api/cowork/teams/coworkdirectmessages00000/channels/16ktw688jjq746l11wg8nwyy5/leave HTTP/1.1 Accept: */* Authorization: Bearer VGhpcyBpcyBqdXN0IGEgZGVtbyBhY2Nlc3MgdG9rZW4u # Response HTTP/1.1 204 No Content