const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({text: '<string>'})
};
fetch('https://acme.getid.ee/api/v1/application/{id}/set-comment', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));