Legacy Dev Forum Posts

 View Only

Sign Up

postRoutingQueueUsers parameters

  • 1.  postRoutingQueueUsers parameters

    Posted 06-05-2025 19:18

    TRA_Salah | 2020-02-28 16:05:07 UTC | #1

    Hello, can someone help with the parameter of this method :slight_smile: postRoutingQueueUsers(queueId, body, opts)

    let queueId = "queueId_example"; // String

    Queue ID

    let body = [{}]; // Object

    Queue Members

    let opts = {'_delete': false // Boolean

    True to delete queue members};

    how to write correctly a list of users in body bloc

    I tryed like this let body = [{"id": "bc7c542c-f696-4d2e-b7bc-665e69959c4d"}, {"id":"ec97d2d7-6f6d-4e56-917a-e283a157a4f0"}]; it dosnt work


    tim.smith | 2020-02-28 18:11:06 UTC | #2

    See the request body here: POST /api/v2/routing/queues/{queueId}/users


    TRA_Salah | 2020-03-02 11:02:31 UTC | #4

    Hello, Still can't see how to declare more than one user id in the body bloc : [ { "id": "" } ] i tryed like this :

    let body = [ { "id": "id of user 1", }, { "id": "id of user 2", } ]; I got this error message : "message": "The request could not be understood by the server due to malformed syntax."

    Can you help me with the syntax of body bloc ?


    anon28885283 | 2020-03-04 04:21:14 UTC | #5

    Can you post the script or snippet you're trying to run? (Remove any private/sensitive info)


    tim.smith | 2020-03-04 20:40:20 UTC | #6

    TRA_Salah, post:4, topic:7235
    let body = [ { "id": "id of user 1", }, { "id": "id of user 2", } ];

    That's correct. Please provide the correlation ID from the response in addition to a snippet of your actual code that's making this request.


    TRA_Salah | 2020-03-05 08:17:08 UTC | #7

    Thanks tim for your answer. its the right syntax


    system | 2020-04-05 08:17:13 UTC | #8

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


    This post was migrated from the old Developer Forum.

    ref: 7235