const url = 'https://api.channelautomation.com/api/agent-teams/workspace/%7BworkspaceId%7D/reorder';
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({order: ['string']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));