Assign Wrap up code by API

Hello,

I would like to assign a wrap up code to an active interaction. Is there any API which allow it?

Thanks in advance.

1 Like

https://developer.mypurecloud.com/api/rest/v2/conversations/wrapup.html

Thank you Tim, but I have tried both with an email and a chat and the wrap up code is not assigned. The API only assigns the notes and disconnects the agent.

I am using:

{
   "wrapup": {
      "code": "7865c1ff-a75a-462d-ba30-ca68cd032c4f",
      "name": "",
      "notes": "Test 2",
      "tags": [],
      "durationSeconds": 60,
      "endTime": "2018-02-13T07:47:00.000Z",
      "provisional": true
   },
   "state": "disconnected",
   "recording": true,
   "muted": true,
   "confined": true,
   "held": true,
   "wrapupSkipped": true
}

What I'm actually looking for is an API that replaces the functionality of the "Done" button that is used in the after call work (to assign the wrap up code and to end the interaction), is there something that does this?

Thanks in advance.

Don't send any properties except the ones you want. Every property you send will attempt to alter the conversation. Your request is trying to disconnect the conversation, initiate a recording, put it on mute, confine it, put it on hold, skip the wrapup, etc... Just do this:

{
   "wrapup": {
      "code": "7865c1ff-a75a-462d-ba30-ca68cd032c4f"
   }
}

Thanks for your help, Tim, that is what I was looking for.

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