Delete Annotations
curl --request DELETE \
--url https://cloudlab.scispot.io/sequences/{uuid}/annotations/{annotationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/annotations/{annotationId}', 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/{annotationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"uuid": "{uuid}",
"annotationId": "{annotationId}",
"removed": true,
"success": true
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Not found"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Sequence API
Delete Annotations
This endpoint allows the user to delete specific annotations from existing sequences
DELETE
https://cloudlab.scispot.io
/
sequences
/
{uuid}
/
annotations
/
{annotationId}
Delete Annotations
curl --request DELETE \
--url https://cloudlab.scispot.io/sequences/{uuid}/annotations/{annotationId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/annotations/{annotationId}', 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/{annotationId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"uuid": "{uuid}",
"annotationId": "{annotationId}",
"removed": true,
"success": true
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Not found"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}⌘I
