Public Method Author API

createItem()

Navigates to a new Item editor view, ready for an author to create a new Item.

You would want to use this method so that you can navigate to the Item editor view in your own application, for example.

Important The Item is not saved when createItem() method is run. The author can save the Item manually, or you can call the save() method for the new Item to be saved to the Item bank.

Examples

authorApp.createItem('my_new_item_reference');

Arguments

  • itemReference string

    The Item reference used to identify the Item.

    If no value is passed, the new Item that will be created will have a UUID as the reference. If you specify a custom reference, it must not match the reference of an existing Item in the Item bank; otherwise, the operation will fail with an error.

    Maximum length is 150 characters.

Return value

None (undefined).

Related articles

  • The save() method, which saves the Item to the Item bank.
Was this article helpful?