Unlock Folder
curl --request POST \
--url https://cloudlab.scispot.io/labspace/folder/unlock \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location": "My Labspace:Protocols Folder"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location: 'My Labspace:Protocols Folder'})
};
fetch('https://cloudlab.scispot.io/labspace/folder/unlock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labspace/folder/unlock"
payload = { "location": "My Labspace:Protocols Folder" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"message": "Bad request"
}{
"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"
}Permissions (Super Admin Only)
Unlock Folder
This endpoint allows you to add permissions to a private folder in the labspace.
Notes:
-
The owner of the API token must have Super Admin permissions
-
The folder must already be privated
-
You cannot add a user who already has permission to a private folder. (To edit a permission you must delete the user first and then add them back with the correct permission)
Validation notes: provide at least one of uuid, location.
Provide uuid or location. Requires Super Admin API token.
POST
https://cloudlab.scispot.io
/
labspace
/
folder
/
unlock
Unlock Folder
curl --request POST \
--url https://cloudlab.scispot.io/labspace/folder/unlock \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"location": "My Labspace:Protocols Folder"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({location: 'My Labspace:Protocols Folder'})
};
fetch('https://cloudlab.scispot.io/labspace/folder/unlock', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/labspace/folder/unlock"
payload = { "location": "My Labspace:Protocols Folder" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true
}{
"success": false,
"message": "Bad request"
}{
"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"
}⌘I
