const url = 'https://api.sureshake.com/v2/reports/shares/<shareId>';
const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({permission: 'read', allowDownload: true, watermark: true})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));