Link External Barcode
curl --request POST \
--url https://cloudlab.scispot.io/labsheets/link-external-barcode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"labsheet": "Sample Manager",
"externalBarcode": 1234567890,
"uuid": "<uuid>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({labsheet: 'Sample Manager', externalBarcode: 1234567890, uuid: '<uuid>'})
};
fetch('https://cloudlab.scispot.io/labsheets/link-external-barcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labsheets/link-external-barcode"
payload = {
"labsheet": "Sample Manager",
"externalBarcode": 1234567890,
"uuid": "<uuid>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "External barcode linked successfully",
"uuid": "<uuid>",
"externalBarcode": 1234567890
}Labsheets (LIMS) API
Link External Barcode
This endpoint allows the user to link external barcodes to labsheets that have the external barcode column type. This endpoint also allows the user to link barcodes to labsheet entries that already has an external barcode. This usage will allow multiple external barcodes to refer to the same entry, instead of replacing the existing external barcode.
POST
https://cloudlab.scispot.io
/
labsheets
/
link-external-barcode
Link External Barcode
curl --request POST \
--url https://cloudlab.scispot.io/labsheets/link-external-barcode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"labsheet": "Sample Manager",
"externalBarcode": 1234567890,
"uuid": "<uuid>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({labsheet: 'Sample Manager', externalBarcode: 1234567890, uuid: '<uuid>'})
};
fetch('https://cloudlab.scispot.io/labsheets/link-external-barcode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labsheets/link-external-barcode"
payload = {
"labsheet": "Sample Manager",
"externalBarcode": 1234567890,
"uuid": "<uuid>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"message": "External barcode linked successfully",
"uuid": "<uuid>",
"externalBarcode": 1234567890
}Authorizations
Personal access token from Scispot Account → Personal Tokens
Body
application/json
⌘I
