Hi,
I have the following code:
if(window.location.hash) {
console.log(location.hash);
var token = getParameterByName('access_token');
fetch('https://api.mypurecloud.de/api/v2/routing/queues/QueueID/users/UserID', {
headers: {
"Authorization": 'bearer ' + token,
"Content-type": "application/json; charset=UTF-8"
},
method: 'PATCH',
body: JSON.stringify({
"id": "UserID",
"ringNumber": 5,
})
});
This works as intended and updates the ringnumber for that specific queue and user to 5.
However, I want to achieve this for 6 different queues at the same time (with 1 click). Is this possible?