AVAILABLE WITH BUSINESS SUBSCRIPTION

Request: POST /course/tree

With this request, you can retrieve a tree of courses and other content items.

To retrieve a specific tree item, pass its ID in the itemId parameter.

Request Headers

HeaderDescription

Authorization

(required)
Access token. You can obtain a token by making a request.

Content-Type: application/json
(required)

The request body format in JSON

Accept: application/json
(required)

The response format in JSON

Request Parameters

ParameterTypeDescription

itemId

(optional)
stringThe ID of the tree item to retrieve

Response Parameters

After the request is successfully processed, the system returns an array with the following properties:

ParameterTypeDescription

itemId

string

The item ID

title

string

The item title

type

string

The item type

description

string

The item description

addedDate

dateTime

The date the item was added

viewUrl

string

The link to view the item

parentId

string

The parent item ID

isShared

boolean

true if the item is shared; otherwise, false


The type parameter can include:

  • iSpringSuiteModule
  • Course
  • Page
  • Folder
  • Link
  • SCORM
  • LearningTrack
  • PowerPointPresentation
  • WordDocument
  • PDFDocument
  • ExcelSpreadsheet
  • OnlineQuiz
  • Quiz
  • RolePlay
  • Book
  • Interaction
  • Video
  • Audio
  • Assignment
  • ExternalCourse

Response Codes

Code

Text

Description

200

OK

The request has been successfully processed

400

Bad Request

A request error

401

Unauthorized

An authorization error

403

Permission Denied

The user doesn't have enough permissions to complete the request

Sample Request

POST /course/tree?itemId=cdcc8b68-3c12-11f1-8f8c-ce3ca9be27b7 HTTP/1.1
Host: api-learn.ispringlearn.com
Accept: application/json
Authorization: p-1sJDjmULL5DdpXPJTcbm4jVIaWVHvNmrjAxATRbNE

Sample Response

[
  {
    "itemId": "cdcc8b68-3c12-11f1-8f8c-ce3ca9be27b7",
    "title": "Information Security",
    "type": "Course",
    "parentId": "0",
    "isShared": false
  },
  {
    "itemId": "d8b95c1f-3c12-11f1-bbd0-9a42ef69602a",
    "title": "How to Set a Secure Password",
    "type": "Page",
    "parentId": "cdcc8b68-3c12-11f1-8f8c-ce3ca9be27b7",
    "isShared": false
  }
]
CODE