GET contentItems/{id}?includeHierarchy={includeHierarchy}
Gets a content item and (optionaly) its hierarchy.
Authorization
Access to this endpoint is granted if all following conditions are true:
- Authenticated user who is either StaffMember, Student, Administrator, ProspectWithTrial, User
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id of a Content Item to retrieve. |
globally unique identifier |
Required |
includeHierarchy |
Option to include the hierarchy data. |
boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
Content Item
PearsonEnglish.LearningServices.Core.Models.Views.ContentItemViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | globally unique identifier |
None. |
|
Description | string |
None. |
|
Duration | integer |
None. |
|
IsSkippable | boolean |
None. |
|
Url | string |
None. |
|
CourseId | globally unique identifier |
None. |
|
Sequence | integer |
None. |
|
AncestorCategoryId | globally unique identifier |
None. |
|
TypeId | integer |
None. |
|
TypeName | string |
None. |
|
Hierarchy | Collection of PearsonEnglish.LearningServices.Core.Models.Views.CategoryViewModel |
None. |
|
ContentOptimizationLevelId | integer |
None. |
|
ContentOptimizationLevelName | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Id": "541b8a21-d8f3-4c08-ac98-58b955b32165", "Description": "sample string 2", "Duration": 1, "IsSkippable": true, "Url": "sample string 3", "CourseId": "32360331-638b-46c4-9fa0-cd493ca0abd8", "Sequence": 1, "AncestorCategoryId": "5a0ff968-a115-4f4b-bea9-395b5b3fa3a2", "TypeId": 5, "TypeName": "sample string 6", "Hierarchy": [ { "Id": "b8f8b046-bd2a-45ba-98e4-a2a6032d6975", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] }, { "Id": "b8f8b046-bd2a-45ba-98e4-a2a6032d6975", "Type": "sample string 2", "Sequence": 1, "Path": "sample string 3", "Attributes": { "sample string 1": "sample string 2", "sample string 3": "sample string 4" }, "ChildCategories": [] } ], "ContentOptimizationLevelId": 7, "ContentOptimizationLevelName": "sample string 8" }