Getting Course Info
AVAILABLE WITH BUSINESS SUBSCRIPTION
Request: GET /content/{ID}
Permissions to Run the Request
Account Owner, Account Administrators, Department Administrators, as well as Course Authors and users with a custom role with the 'Can edit' access to the content item.
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. |
Parameter | Description |
contentItemId (required) | The ID of a course about which you would like to get info |
Headers and Response Parameters
Header | Description |
---|---|
contentItem | An array with course data |
contentItemId | Course ID |
title | Course title |
subtitle | Course subtitle |
description | Course description |
userId | The ID of the administrator who assigned the course |
addedDate | Course addition date |
viewUrl | Link to view the course |
type | Content type |
Response Codes
Code | Text | Description |
---|---|---|
200 | OK | The request has been successfully processed. The response body contains the XML data regarding a course |
401 | Unauthorized | An authorization error |
403 | Permission denied | The user doesn't have enough permissions to get information regarding the course or can't edit the content item. |
Sample Request
GET /api/v3/content/9ed3f246-2192-11ef-8074-0242ac130078?contentTypes[]=iSpringSuiteModule HTTP/1.1
Host: learn-app.ispring.com
Authorization: PMPU9-2etZMz6JMhXg9zCYBSti0FH6l469LWIu7Yyk4
XML
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>
<contentItemType>Quiz</contentItemType>
</contentItem>
</response>
XML