RESPONSE {"status":"error","message":"Invalid input JSON on line 1, column 1: Cannot construct instance of `com.hubspot.engagements.base.detail.views.EngagementDetailViewWithJson` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{\"engagement\": {\"active\": true,\"type\": \"CALL\"}, \"associations\": {\"contactIds\": [5025901]},\"metadata\": {\"recordingUrl\": \"https://ringcentral.github.io/ringcentral-media-reader/index.html?media=https://media.ringcentral.co..."}
According to the old documentation (that has proven to be outdated and incorrect in many cases) the associations cannot be modified through engagements. You need to use associations API for that part of your code.
Error when trying to update an engagemement activity
解決
@MichaelC Thanks for the info, I actually do not need to modify the association. Alll I am trying to do is add a call recording to the CALL engagement. I have removed everything but this in the JSON and continue to get the parsing error. Any other suggestions?
"message":"Invalid input JSON on line 1, column 1: Cannot construct instance of `com.hubspot.engagements.base.detail.views.EngagementDetailViewWithJson` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('{\"metadata\": {\"recordingUrl\": \"https://ringcentral.github.io/ringcentral-media-reader/index.html?media=https://media.ringcentral.co..."}}')",
According to the old documentation (that has proven to be outdated and incorrect in many cases) the associations cannot be modified through engagements. You need to use associations API for that part of your code.