Magidoc

addFolder
Mutation

Create a folder in the current workspace. For File Library (DAM) folders, pass type: fileStore. Root file-store folders default to Only me sharing unless nested under a parent folder (then sharing inherits from the parent). Notebook folders default to type notebook when type is omitted.

Arguments

#

_id

Optional client-supplied folder ID. Omit to let the server generate one.

name

Non-null

Display name for the new folder.

workspace

Non-null

Workspace ID the folder belongs to.

type

Folder category. Use fileStore for File Library folders. Defaults to notebook when omitted.

parentId

Parent File Library folder ID. Omit or pass null to create at the workspace File Library root. Required parent must already exist and be editable by the caller.

sharingType

Optional File Library sharing to apply after creation (fileStore only), same as shareFileStoreNode. Omit to keep the default sharing.

sharedWith

[ID !]

Users to share with when sharingType is custom (fileStore only).

teams

[ID !]

Teams to share with when sharingType is custom (fileStore only).

Response

#

Returns Folder .

Example

#