const url = 'https://api.sureshake.com/v2/reports/<id>/access';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({grantedToUserId: 'string', permission: 'read'})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));