/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
remote_user_id
optional
string
The user ID provided during the LTI launch of the remote editor.
metadata
optional
array
An array of course metadata key and value pairs formatted as a query string, e.g. metadata[][key]=course&metadata[][value]=Python&metadata[][key]=id&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.