This API will soon be deprecated. Please use another API.

    Add Members with Bot Permissions

    Adds members who have permissions to use a bot.

    You can add those members if you choose to allow "only specified members" to use the bot when registering its domain.

    API Type

    Server API

    Request URL

    https://apis.worksmobile.com/{API ID}/message/setMemberList

    HTTP Method

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

    Request

    Parameter Type Required Description
    domainId number Y Domain ID
    botNo number Y Message bot number
    accountIdList array<string> Y List of specified members to add

    Request Example

    {
      "domainId": 123456,
      "botNo": 123,
      "accountIdList": ["user1@example.com", "user2@example.com"]
    }
    

    Response

    It returns code 200 when the API call is successful.

    Property Type Required Description
    code number Y ● 200: Success
    ● 4xx: Client request errors
    ● 5xx: Unexpected errors and server internal errors
    message string Y Description about the code

    Response Example

    {
        "code": 200,
        "message": "OK"
    }