The UserRunningAndSavedLabs command retrieves all labs that are currently running or saved for a particular user account.
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".
The unique identifier used to identify the user in within your organization.
OK Response.
{
"RunningLabs": [
{
"LabInstanceId": 3497,
"LabProfileId": 5,
"LabProfileName": "Demo Lab 1",
"LabProfileNumber": "LAB001",
"Start": 1338223121,
"Expires": 1338244721,
"Url": null,
"IsExam": false
}
],
"SavedLabs": [
{
"LabInstanceId": 3493,
"LabProfileId": 1,
"LabProfileName": "Demo Lab 2",
"LabProfileNumber": "LAB002",
"MinutesRemaining": 359,
"Saved": 1337987655,
"Expires": 1338592455,
"SaveInProgress": false,
"IsExam": false,
"SubmittedForGrading": false
}
],
"Status": 1,
"Error": null
}
Array of RunningLab objects.
The unique identifier of the lab instance.
The unique identifier of the lab profile the lab instance is based on.
The name of the lab profile the lab instance is based on.
The number/code 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).
This response property is deprecated. Unless explicitly allowed by Skillable, this field will always be null. To obtain an access URL, use the LabAccessUrl command.
Indicates whether the lab is scored.
Array of SavedLab objects.
The unique identifier of the lab instance.
The unique identifier of the lab profile the lab instance is based on.
The name of the lab profile the lab instance is based on.
The number/code of the lab profile the lab instance is based on.
The number of minutes remaining for the student to complete the lab (when resumed).
When the lab was saved (in Unix epoch time).
When the saved lab will expire (in Unix epoch time). The student must resume the lab for this date, or the lab will be deleted.
True/false indicating whether the lab is currently in the process of being saved.
Indicates whether the lab is scored.
Indicates whether the lab has been submitted for grading and is in a saved state while awaiting scoring. This will only be true for scored labs.
Indicates the status of the API request.
0 = Error
1 = Success
In the event of an error, this will contain a detailed error message.