The RunningAndSavedLabs command retrieves all lab instances launched by this API Consumer that are currently running or saved.
NOTE: there are no query parameters for this command.
All methods require an API key, which must be obtained from Skillable. This key is used by Skillable to validate your account. The key can be passed as an HTTP request header with the header name "api_key".
OK Response.
{
"RunningLabs": [
{
"Id": 3497,
"UserId": "5843",
"UserFirstName": "John",
"UserLastName": "Doe",
"LabProfileId": 5,
"LabProfileName": "Demo Lab 1",
"LabProfileNumber": "LAB001",
"Start": 1338223121,
"Expires": 1338244721,
"IsExam": false
}
],
"SavedLabs": [
{
"Id": 3493,
"UserId": "5158",
"UserFirstName": "Sally",
"UserLastName": "Smith",
"LabProfileId": 1,
"LabProfileName": "Demo Lab 2",
"LabProfileNumber": "LAB002",
"Start": 1337987655,
"Expires": 1338592455,
"IsExam": false
}
],
"Status": 1,
"Error": null
}
Array of LabInstance objects for running labs.
The unique identifier of the lab instance.
The ID of the user the lab instance belongs to.
The first name of the user the lab instance belongs to.
The last name of the user the lab instance belongs to.
The unique identifier of the lab profile the lab instance is based on.
The number/code of the lab profile the lab instance is based on.
The name of the lab profile the lab instance is based on.
When the lab instance was started (in Unix epoch time).
When the lab will expire (in Unix epoch time).
Indicates whether the lab is scored.
Array of LabInstance objects for saved labs.
The unique identifier of the lab instance.
The ID of the user the lab instance belongs to.
The first name of the user the lab instance belongs to.
The last name of the user the lab instance belongs to.
The unique identifier of the lab profile the lab instance is based on.
The number/code of the lab profile the lab instance is based on.
The name of the lab profile the lab instance is based on.
When the lab instance was started (in Unix epoch time).
When the lab will expire (in Unix epoch time).
Indicates whether the lab is scored.
Indicates the status of the API request.
0 = Error
1 = Success
In the event of an error, this will contain a detailed error message.