LINE WORKS Developers

コミュニティ

LINE WORKSのテクニカルエキスパート及び開発者と
コードのサンプル、リソース、Tip等を共有し問題解決への相談が可能です。

??dev_메인_타이틀_모바일_ja_JP??

トークBot

Issue with registerBotDomain/v2 API

画像

シャーバビック

2018.11.08既読 244

Hi There,


We got a complain from client not able to register Bot with line works. We have investigated and found the API registerBotDomain/v2 which was earlier working fine is giving below error now.


API:

https://apis.worksmobile.com/#{line_work_api_id}/message/registerBotDomain/v2


Request:

{

    botNo: bot_no (passed from registerBot/v2 api response),

    domainId: 0 (passing it as 0 from beginning)

}


Response:

code: "SERVICE_UNAVAILABLE"

errorCode: "090"

errorMessage: "Service fail, HTTP/1.1 400 Bad Request, {"code":400,"message":"Bad Request Parameters: domainId is invalid"}"


Please help ASAP.

 

コメント1

  • 画像

    LINE WORKS 公式アカウント

    Hi there,
    The parameter "'domainId':0" is not allowed today. That was a hidden option and we have deleted it.
    Please use a particular domainId instead of 0.

    p.s. registerBotDomain API is updated and "registerBotDomain/v2" will be deprecated in Apr. 2019.
    Please refer the list below.
    https://developers.worksmobile.com/jp/document/10016001?lang=ja

    2018.11.09

    0