Mark_Rynard | 2020-08-27 22:19:49 UTC | #1
Hello,
I am trying to use /api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes to write a wrapup code.
I made a call into the system and grabbed the participant id and conversation id. For the body, I used:
{ "attributes" : { "wrapup": { "code": "79b7b583-9ab6-4b0c-a6c6-9317fa652c0f", "notes": "Testing", "durationSeconds": 10 } } }
When I send the request, I get:
{ "message": "The request could not be understood by the server due to malformed syntax.", "code": "bad.request", "status": 400, "contextId": "a48c171a-ab61-4252-bae5-b1222c7219c6", "details": [], "errors": [] }
I based the format of my attributes on this link:
https://developer.usw2.pure.cloud/api/rest/v2/conversations/wrapup.html
Can someone give me insight on where I may be going wrong?
Thank you, Mark Rynard
Mark_Rynard | 2020-08-27 22:20:31 UTC | #2
I'm not sure where to categorize this.
Jerome.Saint-Marc | 2020-08-31 14:51:52 UTC | #3
Hello,
You are using the wrong API endpoint/url. The API endpoint to use if you want to set the wrap-up code for a call conversation is PATCH /api/v2/calls/{conversation ID}/participants/{participant ID} See here: https://developer.usw2.pure.cloud/api/rest/v2/conversations/#patch-api-v2-conversations-calls--conversationId--participants--participantId-
Then, in the body of this request, use:
{ "wrapup": { "code": "79b7b583-9ab6-4b0c-a6c6-9317fa652c0f", "notes": "Testing", "durationSeconds": 10 } }
Regards,
system | 2020-10-01 15:06:06 UTC | #4
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: 8681