Write wrapup code with participantId and conversationId

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

I'm not sure where to categorize this.

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,

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.