Getting Learning Track Structure Info
AVAILABLE WITH BUSINESS SUBSCRIPTION
Request: GET /api/v2/learning_track/courses?learningTrackIds={trackId1},{trackId2}
This method helps you to get a list of courses that are included in the learning track.
Account Owner, Account Administrators, Department Administrators, users with a custom role, or Course Author with access to the project containing this course.
Request Headers
Header | Description |
---|---|
X-Auth-Account-Url (required) | The base URL of the account, e.g. https://myaccount.ispringlearn.com |
X-Auth-Email (required) | The login of Account Owner, Account Administrator, Department Administrator, Author, or a user with a custom role. |
X-Auth-Password (required) | The password of Account Owner, Account Administrator, Department Administrator, Author, or a user with a custom role. |
Response Parameters
Parameter | Description |
---|---|
learningTrackCourse | An array containing information regarding the course. |
learningTrackCourse
Parameter | Description |
---|---|
learningTrackId | The learning track ID. |
courseId | The ID of the course that is included in this learning track. |
Response Codes
Code | Text | Description |
---|---|---|
200 | OK | The request has been successfully processed. The response body contains the XML data regarding a course. |
400 | Invalid course id in: {trackId1,trackId2} | The user does not have access to the learning track. |
403 | Permission denied | The user doesn't have enough permissions to get information regarding the course. |
Sample Request
GET /api/v2/learning_track/courses?learningTrackIds=ae804458-9c77-11ec-afb4-0242ac190026,f51b20a6-828a-11ec-85ab-0242ac120038
Host: api-learn.ispringlearn.com
X-Auth-Account-Url: https://myaccount.ispringlearn.com
X-Auth-Email: owner
X-Auth-Password: password
XML
Sample Response
<?xml version="1.0" encoding="UTF-8"?>
<response>
<learningTrackCourse>
<learningTrackId>f51b20a6-828a-11ec-85ab-0242ac120038</learningTrackId>
<courseId>798851ec-1625-11ec-8dfd-0242ac160034</courseId>
</learningTrackCourse>
<learningTrackCourse>
<learningTrackId>f51b20a6-828a-11ec-85ab-0242ac120038</learningTrackId>
<courseId>a19861ee-0a37-11ec-bf16-0242ac140033</courseId>
</learningTrackCourse>
<learningTrackCourse>
<learningTrackId>ae804458-9c77-11ec-afb4-0242ac190026</learningTrackId>
<courseId>a2239d7c-0a37-11ec-b63a-0242ac140033</courseId>
</learningTrackCourse>
<learningTrackCourse>
<learningTrackId>ae804458-9c77-11ec-afb4-0242ac190026</learningTrackId>
<courseId>a1c8afde-0a37-11ec-b484-0242ac140033</courseId>
</learningTrackCourse>
<learningTrackCourse>
<learningTrackId>ae804458-9c77-11ec-afb4-0242ac190026</learningTrackId>
<courseId>a19861ee-0a37-11ec-bf16-0242ac140033</courseId>
</learningTrackCourse>
</response>
XML