iSpring LMS API Documentation REST API Managing Content Current: Getting a Tree of Courses and Folders in the Account Getting a Tree of Courses and Folders in the Account AVAILABLE WITH BUSINESS SUBSCRIPTIONRequest: POST /course/treeWith 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 HeadersHeaderDescriptionAuthorization(required)Access token. You can obtain a token by making a request.Content-Type: application/json(required)The request body format in JSONAccept: application/json(required)The response format in JSONRequest ParametersParameterTypeDescriptionitemId(optional)stringThe ID of the tree item to retrieveResponse ParametersAfter the request is successfully processed, the system returns an array with the following properties:ParameterTypeDescriptionitemIdstringThe item IDtitlestringThe item titletypestringThe item typedescriptionstringThe item descriptionaddedDatedateTimeThe date the item was addedviewUrlstringThe link to view the itemparentIdstringThe parent item IDisSharedbooleantrue if the item is shared; otherwise, falseThe type parameter can include:iSpringSuiteModuleCoursePageFolderLinkSCORMLearningTrackPowerPointPresentationWordDocumentPDFDocumentExcelSpreadsheetOnlineQuizQuizRolePlayBookInteractionVideoAudioAssignmentExternalCourseResponse CodesCodeTextDescription200OKThe request has been successfully processed400Bad RequestA request error401UnauthorizedAn authorization error403Permission DeniedThe user doesn't have enough permissions to complete the requestSample Request POST /course/tree?itemId=cdcc8b68-3c12-11f1-8f8c-ce3ca9be27b7 HTTP/1.1Host: api-learn.ispringlearn.comAccept: application/jsonAuthorization: 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 ×