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.ContentItemViewModel| Name | 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": "38446f84-5f00-400d-9d37-1d57d16df4c6",
"Description": "sample string 2",
"Duration": 1,
"IsSkippable": true,
"Url": "sample string 3",
"CourseId": "8f703d1e-8eab-4c9f-ace4-f6fc3c02d595",
"Sequence": 1,
"AncestorCategoryId": "5cd8f02e-591c-48c9-af46-7e00215115ee",
"TypeId": 5,
"TypeName": "sample string 6",
"Hierarchy": [
{
"Id": "665a9b83-9595-48de-9628-2d72b49fb97d",
"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": "665a9b83-9595-48de-9628-2d72b49fb97d",
"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"
}