I need some help to understand the syntax needed for the body part of a "Add up to 100 wrap-up codes to a queue" (/api/v2/routing/queues/{queueId}/wrapupcodes).
I have tried various different syntax types, but none appear to be working, so any assistance would be apreciated.
I tried that with the below;
[
{
"name": "Change of contact details",
"dateCreated": "2017-11-08T06:55:32.594Z",
"dateModified": "2017-11-08T06:55:32.594Z",
"modifiedBy": "2cf2f22b-b8b6-4960-8d19-ea0cad482c51",
"createdBy": "2cf2f22b-b8b6-4960-8d19-ea0cad482c51"
}
]
And I get the below bad response
{
"status": 400,
"code": "bad.request",
"message": "Some of the wrap-up codes provided do not exist",
"contextId": "a7597482-5c40-46c4-8f0c-72f8dd886839",
"details": [],
"errors": []
}
Do you have any other ideas? (and yes the wrap up definitely exists as does the queueId I am using in the address
It looks like the contract for this resource has been reused from the response and isn't correct. You need to send the wrap up code IDs. The correct request format should be like this: