postRoutingQueueUsers parameters

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

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

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 ?

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

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.

Thanks tim for your answer.
its the right syntax

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