const url = 'https://api.channelautomation.com/api/triggers/webhooks/bulk-field-changes';
const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
changes: [
{
entityId: 'string',
entityType: 'contact',
field: 'string',
value: 'string',
workspaceId: 'string'
}
]
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));