const url = 'https://api.sureshake.com/v2/entities/<id>/decorations';
const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
personnel: true,
references: true,
identifiers: true,
addresses: true,
portfolios: true,
verification: true,
qrCodes: true,
netsuite: true
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));