const options = {
method: 'POST',
headers: {
customer: '<customer>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
customer: '<string>',
emails: ['<string>'],
all_projects: true,
project_ids: ['<string>'],
role: 'editor',
suppress_notification: false
})
};
fetch('https://backend.branch.flowengineering.com/users/invite/bulk', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));