Getting a List of All Account Courses
AVAILABLE WITH BUSINESS SUBSCRIPTION
Request: GET /content
- You will retrieve a list of course that were originally uploaded to the account. Content copied from other courses won't appear in the response.
The response contains only the original created or downloaded versions of courses and content.
Let's suppose that when creating Course B, you copied a quiz as a linked copy from Course A. Only the original quiz from Course A will be included in the response.
Note that the way you create the copy of the content is important:
- If it is a copy, then the data about the content will be shown in the response.
- If it is a linked copy, the information will not be shown.
- Learn how to get a list of all course modules in the Getting a List of Course Modules article.
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, as well as Course Authors and users with a custom role with access to the project containing this course.
For users with a custom role, allow "View and enroll users into training programs."
Request Headers
Header | Description |
---|---|
Authorization (required) | Access token. You can obtain a token by making a request. |
Response Headers and Parameters
Header | Description |
---|---|
contentItem | An array that contains data about the learning track, course, or content |
contentItemId | ID of the learning track, course or content |
title | Title of the learning track, course or content |
subtitle | Subtitle of the learning track, course or content |
description | Description of the learning track, course or content |
userId | ID of the user to whom the learning track, course or content is assigned |
addedDate | Date of addition of the learning track, course or content |
viewUrl | Link to view the learning track, course or content |
type | Content type |
Response Codes
Code | Text | Description |
---|---|---|
200 | OK | The request has been successfully processed. The response body contains the XML data regarding all account courses |
400 | Bad Request | A request error |
401 | Unauthorized | An authorization error |
403 | Permission denied | The user doesn't have enough permissions to get a list of account courses |
Sample Request
GET /content
Host: api-learn.ispringlearn.com
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE
Sample Response
https/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<response>
<contentItem>
<contentItemId>86479c62-4e4a-11e9-9ddf-e6163e60333c</contentItemId>
<title>Sample Simulation - Car Sale Dialog</title>
<subtitle>A course to improve your sales skills</subtitle>
<description>Things to remember when meeting a client.</description>
<userId>87a61dae-4e4a-11e9-80be-e6163e60333c</userId>
<addedDate>2019-03-26T06:34:57+00:00</addedDate>
<viewUrl>https://myaccount.ispringlearn.com/view/200009-1gryB-w4K2M-gB5X5</viewUrl>
<type>Course</type>
</contentItem>
...
</response>