Legacy Dev Forum Posts

 View Only

Sign Up

HTTP 500 error when updating single queue attribute

  • 1.  HTTP 500 error when updating single queue attribute

    Posted 06-05-2025 18:21

    mike.khalil | 2021-12-14 18:03:48 UTC | #1

    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?


    anon14299330 | 2021-12-16 20:41:44 UTC | #2

    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


    mike.khalil | 2021-12-16 20:42:00 UTC | #3

    That was the issue. Thanks, Michael!


    John_Carnell | 2021-12-16 20:45:55 UTC | #4


    This post was migrated from the old Developer Forum.

    ref: 12951