Create an item in the teacher Library or student Backpack

POST /library_items

Required scopes: write_library_items

Input

type Required string The type of the item. Valid options include:

  • folder
  • file
  • link
  • embed
item Required object The item data.
For type folder:

title Required string The title of the folder.

For type link:

title Required string The title of the link.
link_url Required string The URL link.

For type embed:

title Required string The title of the embed.
content Required string HTML content of embed

Example request
POST /library_items
{
"type": "link",
"item": {
"link_url": "https://nytimes.com",
"title": "New York Times",
}
}

Example response
201 Created
Location: https://api.edmodo.com/library_items/123
{
"id": 123,
"url": "https://api.edmodo.com/library_items/123",
"type": "link",
"parent_id": 1,
"position": 1,
"subject_area": "MATHEMATICS",
"start_level": "FIRST",
"item": {
"id": 10,
"url": "https://api.edmodo.com/links/10",
"link_url": "https://nytimes.com",
"title": "New York Times",
},
"created_at": "2015-10-02"
}