The page that you are currently viewing is for an old version of Stroom (7.6). The documentation for the latest version of Stroom (7.8) can be found using the version drop-down at the top of the screen or by clicking here.
Explorer API
The API for managing the folders and documents in the explorer tree.
Creating a New Document
The explorer API is responsible for creation of all document types. The explorer API is used to create the initial skeleton of a document then the API specific to the document type in question is used to update the document skeleton with additional settings/content.
This is an example request file req.json
:
{
"docType": "Feed",
"docName": "MY_FEED",
"destinationFolder": {
"type": "Folder",
"uuid": "3dfab6a2-dbd5-46ee-b6e9-6df45f90cd85",
"name": "My Folder",
"rootNodeUuid": "0"
},
"permissionInheritance": "DESTINATION"
}
You need to set the following properties in the JSON:
docType
- The type of the document being created, see Documents.docName
- The name of the new document.destinationFolder.uuid
- The UUID of the destination folder (or0
if the document is being created in the System root.rootNodeUuid
- This is always0
for the System root.
To create the skeleton document run the following:
This will create the document and return its new UUID to stdout.
Last modified February 11, 2025: Merge branch '7.5' into 7.6 (613d33f)