08-02-2022 10:39 AM
Hi, I'm developing my first webex bot but i keep getting the following response when the i call the message endpoint https://webexapis.com/v1/messages
{ "message": "Message destination could not be determined. Provide only one destination in the roomId, toPersonEmail, or toPersonId field", "trackingId": "WEBEX-DEV-PORTAL_50b497fa-dbb6-4ed0-8fe4-0f5e184c0365_5" }
may be i need more details on what the message means because i have provided the necessary fields for my request shown below
{ "roomId": "Y2lzY29zcGFyazovL3VybjpURUFNOmV1LWNlbnRyYWwtMV9rL1JPT00vOWNlYmM4MDAtMGYzMy0xMWVkLTk4ZDMtOTM5Yzg5MGZmYzgw", "parentId": "Y2lzY29zcGFyazovL3VybjpURUFNOmV1LWNlbnRyYWwtMV9rL01FU1NBR0UvYzI5NzVlODAtMTAwZS0xMWVkLTk4OGMtOWQ3OGY2YWFmYTM5", "toPersonEmail": "muyanjarodney266@gmail.com", "text": "Hi, not cool that you don't greet", "toPersonId": "Y2lzY29zcGFyazovL3VzL1BFT1BMRS9iYjI5NWNlYS0zNTMzLTRkMDAtYTE1MC0yMTc2ZDRiZGU5MDQ" }
any help and direction provided would be highly appreciated.
08-02-2022 10:56 AM
Thank you very much for this
08-02-2022 10:52 AM
The reason is quite clear if you check the error message: you have provided all, roomId, toPersonEmail, and toPersonId. The endpoint accepts only one of them to be set.
Simply remove toPersonEmail and toPersonId and try again.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide