/contents

Description

The contents endpoint can be used to request a list of contents in an account. This endpoint supports pagination.

get
List Contents

https://api.next.tech/v1/contents
List the contents available for a set of courses or a remote editor. Ordered by the content's created at date descending.
Request
Response
Request
Path Parameters
before
optional
string
Retrieve contents that were created before the specified date. The date format is ISO 8601. E.g., 2020-10-7T23:13:00.000Z
after
optional
string
Retrieve contents that were created after the specified date. The date format is ISO 8601. E.g., 2019-10-7T00:00:00.000Z
remote_user_id
optional
string
The user ID provided during the LTI launch of the remote editor.
project_metadata
optional
string
An array of project metadata key and value pairs formatted as a query string, e.g. project_metadata[][key]=level&project_metadata[][value]=intermediate&project_metadata[][key]=language&project_metadata[][value]=python
course_metadata
optional
array
An array of course metadata key and value pairs formatted as a query string, e.g. course_metadata[][key]=course&course_metadata[][value]=Python&course_metadata[][key]=id&course_metadata[][value]=1.
course_uid
optional
string
An array of course API keys formatted as a query string, e.g. course_uid[]=196e2e6a-ecd2-48c2-ae28-d6e76a7327a8&course_uid[]=6e17916f-8a3d-40d6-9a89-2cf6742379d3.
Response
200: OK
[
{
"created_at": 1567018961,
"updated_at": 1567018964,
"id": 5,
"draft": true,
"identifier": "44395d56-76dd-4c60-a6bc-8e9699fb8e3f",
"editor_owned": true,
"gradeable": false,
"lti_url": "https://api.next.tech/api/v1/lti/load?content_id=44395d56-76dd-4c60-a6bc-8e9699fb8e3f",
"name": "A content",
"position": null,
"public_url": "https://api.next.tech/api/v1/publishable_key/9D2ECEF57931DA25CBA2AA374607A17C?content_id=44395d56-76dd-4c60-a6bc-8e9699fb8e3f",
"metadata": [
{
"created_at": 1594319234,
"updated_at": 1594319234,
"id": 1,
"key": "Course Name",
"value": "Introduction to Python"
}
]
}
]

If you have a large number of contents on your account, it's advisable to use pagination or provide at least one of the above filters to improve request performance.