Create a Sequence
curl --request POST \
--url https://cloudlab.scispot.io/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"sequence": "<string>",
"type": "<string>",
"sequenceData": "<string>",
"description": "<string>",
"circular": true,
"uuid": "<string>",
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": true
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
sequence: '<string>',
type: '<string>',
sequenceData: '<string>',
description: '<string>',
circular: true,
uuid: '<string>',
annotations: [
{
name: '<string>',
start: 123,
end: 123,
id: '<string>',
color: '<string>',
type: '<string>',
forward: true
}
]
})
};
fetch('https://cloudlab.scispot.io/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences"
payload = {
"name": "<string>",
"sequence": "<string>",
"type": "<string>",
"sequenceData": "<string>",
"description": "<string>",
"circular": True,
"uuid": "<string>",
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<string>",
"type": "<string>"
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Sequence API
Create a Sequence
This API endpoint can be used to create a sequence of any type the scispot supports:
-
DNA sequence
-
RNA sequence
-
Mixed DNA and RNA sequence
-
Oligo
-
Protein
In addition to name, provide sequence or sequenceData. type is optional and defaults to DNA.
Request body must include sequence content using either sequence or sequenceData.
POST
https://cloudlab.scispot.io
/
sequences
Create a Sequence
curl --request POST \
--url https://cloudlab.scispot.io/sequences \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"sequence": "<string>",
"type": "<string>",
"sequenceData": "<string>",
"description": "<string>",
"circular": true,
"uuid": "<string>",
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": true
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
sequence: '<string>',
type: '<string>',
sequenceData: '<string>',
description: '<string>',
circular: true,
uuid: '<string>',
annotations: [
{
name: '<string>',
start: 123,
end: 123,
id: '<string>',
color: '<string>',
type: '<string>',
forward: true
}
]
})
};
fetch('https://cloudlab.scispot.io/sequences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/sequences"
payload = {
"name": "<string>",
"sequence": "<string>",
"type": "<string>",
"sequenceData": "<string>",
"description": "<string>",
"circular": True,
"uuid": "<string>",
"annotations": [
{
"name": "<string>",
"start": 123,
"end": 123,
"id": "<string>",
"color": "<string>",
"type": "<string>",
"forward": True
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<string>",
"type": "<string>"
}{
"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
Body
application/json
⌘I
