- 11 Oct 2024
- 1 Minute to read
- Print
Returns information about a class
- Updated on 11 Oct 2024
- 1 Minute to read
- Print
The Class command returns information about a class.
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 of the class, as represented in your organization.
OK Response.
{
"Id": "4449999",
"Name": "Sample Class",
"Start": 1333267200,
"StartTime": "/Date(1333267200000)/",
"End": 1333299600,
"EndTime": "/Date(1333299600000)/",
"Expires": 1335978000,
"ExpiresTime": "/Date(1335978000000)/",
"Instructor": {
"Id": "65214",
"FirstName": "Demo",
"LastName": "Instructor"
},
"Url": null,
"MaxActiveLabInstances": 20,
"AvailableLabs": [
"17390",
"17432"
],
"Error": null,
"Status": 1
}
The unique identifier of the class, as represented in your organization.
The name of the class.
When the class starts (in Unix epoch time).
When the class starts (in Unix epoch time).
When the class ends (in Unix epoch time).
When the class ends (in Unix epoch time).
When labs can no longer be associated with the class (in Unix epoch time).
When labs can no longer be associated with the class (in Unix epoch time).
The class instructor object.
The unique identifier of the instructor, as represented in your external system.
The instructor's first name.
The instructor's last name.
This response property is deprecated. Unless explicitly allowed by Skillable, this field will always be null.
To obtain a class URL, use the ClassAccessUrl API command.
The maximum amount of active lab instances from the class that can be running.
Array of Available Labs for the class.
In the event of an error, this will contain a detailed error message.
Indicates the status of the API request.
0 = Error
1 = Success