Create Content
createContentFull Description
Create filerooms, folders, or a folder hierarchy in a Datasite project.
- No parentId: Top-level entries become filerooms
- With parentId: Entries become folders under that parent
contentPaths is a flat JSON array where each entry is a full path string plus optional type and published flag:
- path (required): Full slash-separated path, e.g. "/Financial/Q1" or "/Legal"
- type (optional): Override type for the final segment of this path — FILEROOM or FOLDER (auto-inferred if omitted)
- published (optional): Whether the final segment of this path is visible to non-admin users (defaults to false). Not applicable in PREPARE projects — publishing is not supported.
Shared ancestor segments are deduplicated automatically. To set type or published (non-PREPARE only) on an ancestor, list it as its own entry alongside its children (e.g. {"path":"/Financial","type":"FILEROOM"} and {"path":"/Financial/Q1"}). Example: [{"path":"/Financial/Q1"},{"path":"/Financial/Q2"},{"path":"/Legal"}]
PREPARE projects use the Staging Folder (sandbox) exclusively. Do not create new filerooms or folders outside the sandbox on PREPARE projects — create content only within the Staging Folder. Do not suggest publishing content for PREPARE projects — publishing is not a supported feature in PREPARE.
Parameters (2 required, 1 optional)
contentPathsarrayFlat list of content paths to create. Each entry has 'path' (required, full slash-separated path) and optional 'type' (FILEROOM/FOLDER), 'published' (boolean, non-PREPARE only). Example: [{"path":"/Financial/Q1"},{"path":"/Financial/Q2"},{"path":"/Legal"}]
projectIdstringThe project ID
parentIdstringID of the parent fileroom or folder. If omitted, top-level segments become filerooms.