Jeremy_MONZO | 2020-02-20 11:25:05 UTC | #1
Hello,
I'm using this API for associate an external contact with a conversation : PUT - /api/v2/externalcontacts/conversations/{conversationId} It works very well, it associates the conversation with the ID of my external contact.
Now, I would like delete a conversation from an external contact because the conversation doesn't belong to the correct external contact, Is there a way for handle this?
thanks Jeremy
tim.smith | 2020-02-20 22:02:40 UTC | #2
Make the same request, just without the external contact ID.
Jeremy_MONZO | 2020-02-21 08:32:51 UTC | #3
Hi Tim, Thanks for your reply.
If I remove the external contact ID : { "externalContactId": "", "conversationId": "35e91eff-1c1e-4f7f-8e69-75917d374231", "communicationId": "eb3b7e43-e32a-45b4-8b2d-255933178ef1", "mediaType": "CALLBACK" }
I get the error message 500 Internal Server Error { "message": "An unspecified error occurred", "code": "internal.server.error", "status": 500, "contextId": "b87ab69d-3aee-423f-878e-d90e3abdda8a", "details": [], "errors": [] }
jeremy
tim.smith | 2020-02-21 19:31:12 UTC | #4
Hm, I can't find that correlation ID in the us-west region's logs to see if there was additional tracing for the error. However, I'm guessing it's because you're including an invalid external contact ID. An empty string is a value. Your request shouldn't send a value for the external contact, like this:
{
"conversationId": "35e91eff-1c1e-4f7f-8e69-75917d374231",
"communicationId": "eb3b7e43-e32a-45b4-8b2d-255933178ef1",
"mediaType": "CALLBACK"
}
Jeremy_MONZO | 2020-02-24 15:25:26 UTC | #5
Hi Tim,
Thanks for your answer it works like expected.
BR
system | 2020-03-26 15:25:29 UTC | #6
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7167