const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: '<string>',
id: '<string>',
propertyId: '<string>',
licenceDocumentId: '<string>',
text: '<string>',
dueOn: '<string>',
completedOn: '<string>',
archived: true,
expectedRevision: 123
})
};
fetch('https://api.sortx.co.uk/compliance/licence-conditions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));