const options = {
method: 'PATCH',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
external_provider: '<string>',
external_role: '<string>',
member_ids: ['<string>'],
name: '<string>'
})
};
fetch('https://backend.branch.flowengineering.com/user-groups/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));