I have recently been provided basic steps to attempt to change a System (ININ-OUTBOUND-TimeOut) wrap up code to a relevant user wrapup. I am no developer but followed the instructions nevertheless.
I am receiving a 403 forbidden error when attempting to access the conversation id
Is there a tutorial or video to show how this is done correctly, to make sure i am doing everything correct?
Every property you set on that API resource tries to take an action. For example, sending “state”: “disconnected” is telling PureCloud to try and change the conversation's state. You're getting a 403 because you are not allowed to disconnect that conversation (because it's not active anymore). Only send the properties you want (i.e. the wrapup property), and only send the properties you actually have a value for (i.e. code).
Hi Tim, tried what you said and removed the "disconnected" now I am getting a 400 Bad Request.
I have extracted the wrap up codes and tried with and without the code id also removing the name and running just with the code id but i keep getting the below message
Hence why i added the "disconnected" in state
{
"status": 400,
"code": "invalid.value",
"message": "Value [] is not valid for field type [State]. Allowable values are: alerting, dialing, contacting, offering, connected, disconnected, terminated, converting, uploading, transmitting, none"
}
When i do this it creates an error on the line in the dev tools.
What's the error?
Is there any chance you can provide me an example of what I should be sending?
What you commented with, but you need to send valid JSON. Also, the JSON object in your post is using an extended ascii character for the quotes. You're using “ (hex 0x201c), but you should be using " (hex 0x22). These fancy quotes usually come from using document authoring software like Microsoft Word or Outlook instead of a text editor like Notepad, Sublime, or any IDE.
You’re using “ (hex 0x201c), but you should be using " (hex 0x22).
Turns out this is a new site setting on the forum that was enabled by default. It was "prettyifying" posts and presenting normal quotes as "smart quotes". That setting is now disabled so there shouldn't be issues with copy/pasting quotes from the forum anymore.