Add annotations to a Sequence
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/annotations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": true
}
]
}
'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));import requests
url = "https://cloudlab.scispot.io/sequences/{uuid}/annotations"
payload = { "annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<string>",
"added": 123
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Sequence API
Add annotations to a Sequence
This endpoint allows the user to add annotations to an existing sequence
Provide either annotations (array) or annotation (single object). Annotation coordinates are 0-based inclusive and end must be >= start.
POST
https://cloudlab.scispot.io
/
sequences
/
{uuid}
/
annotations
Add annotations to a Sequence
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/annotations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": true
}
]
}
'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));import requests
url = "https://cloudlab.scispot.io/sequences/{uuid}/annotations"
payload = { "annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": True
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<string>",
"added": 123
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}⌘I
