const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
quantity: 1,
parentId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
data: {}
})
};
fetch('https://{instance}/api/v2/deliverable', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));