Bulk WrapUp API Syntax

Hi all,

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.

Thanks

Try this:

[
  {
    "name": "",
    "dateCreated": "",
    "dateModified": "",
    "modifiedBy": "",
    "createdBy": ""
  }
]

Thanks Tim,

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:

[
  {
    "id": "f62e36fa-8f8b-4d8b-be31-649f959c62ec"
  },
  {
    "id": "3b9a84d0-5c50-4ce8-918a-f2080c11fad1"
  }
]

I've created API-3009 to correct the contract for this resource.

2 Likes

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