notebook-folder-controller

Creates a folder at notebook root when no parent is specified; as a child of underFolderId when set; otherwise nested under the context note's folder when underNoteId is set (underFolderId takes precedence when both are set).

post/api/notebooks/{notebook}/folders

Request

  • Base URL: (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/notebooks/{notebook}/folders
  • Auth: none declared

Path parameters

notebookinteger required

Request body

namestring required

Display name for the new folder

underFolderIdinteger

When set, the new folder is created as a direct child of this folder. Must belong to the target notebook. Takes precedence over underNoteId when both are set.

underNoteIdinteger

When set (and underFolderId is not), the new folder is a child of this note's folder (or notebook root when the note has no folder). Must belong to the target notebook.

Response

OK

Changes

    • info

      api tag notebook-folder-controller added

    • info

      api tag notebook-controller removed

    • warning

      changed the pattern of the request property from ^[^\\/:]*$ to ^[\s\x00-\x1F]*[^\\/:*?"<>|\x00-\x1F]*[\s\x00-\x1F]*$