Bot Leaves the Chat Room

    Makes a bot leave the chat room which it belongs to.

    API Type

    Server API

    Request URL

    https://apis.worksmobile.com/r/{API ID}/message/v1/bot/{botNo}/room/{roomId}/leave

    HTTP Method

    POST (Content-Type: application/json; charset=UTF-8)

    Path Parameters

    Parameter Required Description
    botNo Y Message bot number
    roomId Y Chat room ID

    Request Example

    
    POST https://apis.worksmobile.com/r/apiid/message/v1/bot/123/room/{roomId}/leave
    

    Response

    It returns HTTP status 200 with no response if successful.

    Error Code

    If the API call fails, it returns an error code and message.
    For error codes, refer to Message Bot REST API Error Codes.