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
Personal access token from Scispot Account → Personal Tokens
Path Parameters
Example:
"<uuid>"
Body
application/json
The UUID of the labspace page (protocol/experiment/documentation) to add the sequence to. (uuid is accepted as an alias.)
(Optional) The type of link/embed to create on the page.
Where to place the sequence on the page. Defaults to append. One of: append, prepend, replace.
Available options:
append, prepend, replace Response
OK
⌘I
