Add sequence to Labspace Page
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/labspace-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pageUuid": "<uuid>",
"type": "protocol",
"position": "append"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pageUuid: '<uuid>', type: 'protocol', position: 'append'})
};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/labspace-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences/{uuid}/labspace-links"
payload = {
"pageUuid": "<uuid>",
"type": "protocol",
"position": "append"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"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 sequence to Labspace Page
Add the sequence from the url to the labspace page from the payload
POST
https://cloudlab.scispot.io
/
sequences
/
{uuid}
/
labspace-links
Add sequence to Labspace Page
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/labspace-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pageUuid": "<uuid>",
"type": "protocol",
"position": "append"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({pageUuid: '<uuid>', type: 'protocol', position: 'append'})
};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/labspace-links', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences/{uuid}/labspace-links"
payload = {
"pageUuid": "<uuid>",
"type": "protocol",
"position": "append"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Authorizations
Body
application/json
⌘I
