Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Error trying to set canned response in message interactions

    Posted 08-12-2024 06:34
    No replies, thread closed.

    Hi using , this API: 

    post
    /api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages, 
    If i send a text plain works , but if i try to send a messagingTemplate to send a canned response always show this error ( i try canne response with and without parameters)
    { "message": "Bad request: Response type requires responseType set to MessagingTemplate", "code": "bad.request", "status": 400, "messageWithParams": "Bad request: {details}", "messageParams": { "details": "Response type requires responseType set to MessagingTemplate" }, "contextId": "9d8864d4-d55b-44dd-a33b-6a9952b363ad", "details": [], "errors": [] }
    Any idea pls.
    I appreciate your help so much.

    #DigitalChannels

    ------------------------------
    Miguel L. Portugues
    Sabio Ibérica, S.A.
    ------------------------------


  • 2.  RE: Error trying to set canned response in message interactions
    Best Answer

    Posted 08-12-2024 08:50
    No replies, thread closed.

    I found the solution, the canned response should be type Message when it was create if the canned is type standard you can not use this api to do you wanna do.

    Thanks anyway.

    :)



    ------------------------------
    Miguel L. Portugues
    Sabio Ibérica, S.A.
    ------------------------------



  • 3.  RE: Error trying to set canned response in message interactions

    Posted 08-12-2024 11:03
    No replies, thread closed.

    Hi Miguel,

    Glad you found the solution and thanks for sharing it here.  Hopefully it will help others in the future :) 



    ------------------------------
    Sam Jillard
    Online Community Manager/Moderator
    Genesys - Employees
    ------------------------------