Create Folder
curl --request POST \
--url https://cloudlab.scispot.io/labspace/folder/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Protocols Folder",
"location": "My Labspace",
"description": "Folder for sample processing protocols"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Protocols Folder',
location: 'My Labspace',
description: 'Folder for sample processing protocols'
})
};
fetch('https://cloudlab.scispot.io/labspace/folder/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labspace/folder/new"
payload = {
"name": "Protocols Folder",
"location": "My Labspace",
"description": "Folder for sample processing protocols"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<uuid>",
"name": "Protocols Folder"
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Not found"
}{
"success": false,
"message": "Conflict"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Create
Create Folder
Create a folder/subfolder inside a labspace, folder or a subfolder
Note: Labspace, Folder, and Subfolder names should not contain the colon (:) character as colon is used to separate the labspace, folder, and subfolder when assigning the location.
POST
https://cloudlab.scispot.io
/
labspace
/
folder
/
new
Create Folder
curl --request POST \
--url https://cloudlab.scispot.io/labspace/folder/new \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Protocols Folder",
"location": "My Labspace",
"description": "Folder for sample processing protocols"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Protocols Folder',
location: 'My Labspace',
description: 'Folder for sample processing protocols'
})
};
fetch('https://cloudlab.scispot.io/labspace/folder/new', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labspace/folder/new"
payload = {
"name": "Protocols Folder",
"location": "My Labspace",
"description": "Folder for sample processing protocols"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"uuid": "<uuid>",
"name": "Protocols Folder"
}{
"success": false,
"message": "Invalid Authentication Token"
}{
"success": false,
"message": "Missing Authentication Token"
}{
"success": false,
"message": "Not found"
}{
"success": false,
"message": "Conflict"
}{
"success": false,
"message": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Authorizations
Personal access token from Scispot Account → Personal Tokens
Body
application/json
⌘I
