Content Library Items

Create Content Library Item

Changed on

This API endpoint allows users to create an empty item in the content library. No actual content or data is required to be provided in the initial creation.

post/public/v1/content-library-items

Request

Request body

urlstring

Secure (HTTPS) and publicly accessible URL to the PDF document.

editableboolean

Only applicable when creating a content library item from a DOCX file. When true, the DOCX is converted into editable content, so the resulting content library item can be edited.

namestring

The name of the Content Library Item.

Example request

{
  "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
  "editable": true,
  "name": "CLI name example"
}

Response

OK

idstring
namestring
date_createdstring date-time
date_modifiedstring date-time
versionstring
status'cli.UPLOADED' | 'cli.PROCESSED' | 'cli.ERROR'

Example response

{
  "id": "iMymdDd9XFD3HyxP5VD67Q",
  "name": "Sample CLI",
  "date_created": "2021-06-17T15:51:13.226974Z",
  "date_modified": "2021-06-17T15:51:13.326974Z",
  "version": "2"
}

Changes

    • info

      added the new optional request property ////