const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
annotations: [
{
name: '<string>',
start: 123,
end: 123,
id: '<string>',
color: '<string>',
type: '<string>',
forward: true
}
]
})
};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/annotations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));