Skip to content

Pages

Pages can be used to display any sort of content. HTML can be used to format the content of the page to anything you like.

Field Name Description Type
Title* title The page title string
Body body The content of the page. Can be in HTML format. string
Published published Whether or not the page is published {0,1}
Inline inline Set to 1 in order to set this page as an inline page {0,1}
Created timestamp created The timestamp of when the page was created integer
assignees assignees This field shows which enrollees are assigned a particular page. Can be used in POST or PUT; if an empty array is sent, all assignees will be removed from the page. array (of enrollment ids)
grading_group_ids grading_group_ids This field shows what grading groups are assigned a particular page. Can be used in POST or PUT; if an empty array is sent, all grading groups will be removed from the page. array (of grading group ids)

* = Required

View a list of pages for the given realm.

Parameters:

  • withcontent=1
  • with_tags

Return A list of pages

{
"page": [
{
"id": 5825351,
"title": "The page title",
"body": "",
"parent": 0,
"published": 1,
"inline": 0,
"created": 0,
"children": [],
"available": 1,
"completed": 0,
"num_assignees": 4,
"assignees": [12345, 4567, 888, 999],
"grading_group_ids": [534],
"completion_status": "",
"links": {
"self": "http:\/\/..."
}
}
],
"total": 1,
"links": {
"self": "http:\/\/...?start=0&limit=20"
}
}

View a specified page.

Parameters:

  • with_tags

Return A page

{
"id": 5825351,
"title": "The page title",
"body": "",
"parent": 0,
"published": 1,
"inline": 0,
"created": 1389657748,
"children": [],
"num_assignees": 0,
"assignees": [],
"available": 1,
"completed": 0,
"completion_status": ""
}

Create a page.

Content An object containing page fields

{
"id": 5825357,
"title": "The page title",
"body": "",
"parent": 0,
"published": 1,
"inline": 0,
"created": 1389657814,
"children": [],
"available": 1,
"completed": 0,
"links": {
"self": "http:\/\/..."
},
"assignees": [12345, 4567],
"grading_group_ids": [534]
}

Return An object containing page fields

{
"id": 5825357,
"title": "The page title",
"body": "",
"parent": 0,
"published": 1,
"inline": 0,
"created": 1389657814,
"children": [],
"available": 1,
"completed": 0,
"links": {
"self": "http:\/\/..."
},
"assignees": [12345, 4567],
"grading_group_ids": [534]
}

Update a specified page.

Content An object containing page fields

{
"title": "New page title",
"published": "0"
}

Delete a page (cannot be undone)