Get Create Location Status
curl --request GET \
--url https://cloudlab.scispot.io/location/create/status \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloudlab.scispot.io/location/create/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/location/create/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"requestId": "<requestId>",
"status": "COMPLETED",
"message": "Locations created successfully",
"result": {
"created": [
{
"name": "Lab Room 1",
"uuid": "<uuid>"
}
]
}
}{
"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": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Locations API
Get Create Location Status
This endpoint is used in conjunction with the location/create endpoint that creates locations in an async manner. This endpoint is used to check the status of the async request created by the location/create endpoint.
To use this endpoint, add the requestId to the params when calling this endpoint, and a response will be returned with the status of the create location request. with the status, and result of the create location request.
GET
https://cloudlab.scispot.io
/
location
/
create
/
status
Get Create Location Status
curl --request GET \
--url https://cloudlab.scispot.io/location/create/status \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://cloudlab.scispot.io/location/create/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://cloudlab.scispot.io/location/create/status"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"requestId": "<requestId>",
"status": "COMPLETED",
"message": "Locations created successfully",
"result": {
"created": [
{
"name": "Lab Room 1",
"uuid": "<uuid>"
}
]
}
}{
"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": "Validation error"
}{
"success": false,
"message": "Operation failed"
}Authorizations
Personal access token from Scispot Account → Personal Tokens
Query Parameters
This is the request id from the response of the location/create endpoint.
⌘I
