HTTP 500 error when updating single queue attribute

Sorry for what is likely a very basic question...

Using PUT /api/v2/routing/queues/{queueId} I am entering:

{
  "name": "Test Queue Name",
  "mediaSettings": 
  {
    "call": 
    {
      "alertingTimeoutSeconds": 30
    }
  }    
}

And I'm getting an HTTP 500 error. Documentation shows all fields are optional except "name", which I've included. Is there something simple I'm missing?

Hi,

I tried to update a queue's media settings with your example above using PUT /api/v2/routing/queues/{queueId} and I am also getting a 500 error. It looks like you need to include the serviceLevel to get a 200 response.

For example, this request body will work.

{
   "name": "Test Queue Name",
    "mediaSettings": {
      "call": {
        "alertingTimeoutSeconds": 9,
        "serviceLevel": {
          "percentage": 0.7,
          "durationMs": 20000
        }
      }
    }
}

Please open a ticket with customer care as all 5xx errors need to got through product support.

Thanks,

Michael

That was the issue. Thanks, Michael!

1 Like