Add Sequence to Labsheet Row
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/labsheet-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sequenceColumn": "Sequence"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({labsheet: 'Sample Manager', id: 'SMPL000001', sequenceColumn: 'Sequence'})
};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/labsheet-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}/labsheet-links"
payload = {
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sequenceColumn": "Sequence"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"sequenceUuid": "<uuid>",
"type": "DNA"
}{
"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 Labsheet Row
This endpoint will link a sequence to a labsheet row in the sequence column based on the sequence uuid in the url.
POST
https://cloudlab.scispot.io
/
sequences
/
{uuid}
/
labsheet-links
Add Sequence to Labsheet Row
curl --request POST \
--url https://cloudlab.scispot.io/sequences/{uuid}/labsheet-links \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sequenceColumn": "Sequence"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({labsheet: 'Sample Manager', id: 'SMPL000001', sequenceColumn: 'Sequence'})
};
fetch('https://cloudlab.scispot.io/sequences/{uuid}/labsheet-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}/labsheet-links"
payload = {
"labsheet": "Sample Manager",
"id": "SMPL000001",
"sequenceColumn": "Sequence"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"sequenceUuid": "<uuid>",
"type": "DNA"
}{
"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 name of the labsheet containing the row to link the sequence to. (manager is accepted as an alias.)
The ID of the row to link the sequence to.
(Optional) The name of the sequence-type column to place the link in. Defaults to the labsheet's sequence column when omitted.
⌘I
