Request body for creating an entry.

interface ICreateEntryRequest {
    autoRename?: boolean;
    entryType: LfRepositoryClientV2.CreateEntryRequestEntryType;
    folderPath?: string;
    name: string;
    targetId?: number;
    volumeName?: string;
}

Implemented by

Properties

autoRename?: boolean

Indicates if the entry should be automatically renamed if an entry already exists with the given name in the folder. The default value is false.

The type of the entry.

folderPath?: string

An optional folder path, relative to the entry given in the route, that the new entry is created under. Both / and \ are accepted as separators. When any folder in this path does not exist, set the autoCreateFolderPath query parameter to true to create the missing folders; otherwise the request fails with 404. When omitted, the entry is created directly under the route entry (unchanged behavior).

name: string

The name of the entry.

targetId?: number

The TargetId is only needed for creating a shortcut. This will be the entry ID of the shortcut target.

volumeName?: string

The name of the volume to use. Will use the default parent entry volume if not specified. This is ignored in Laserfiche Cloud.