Home > LIB_PanelLibrary > copy
LIB_PanelLibrary.copy() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Copy Panel library
Signature
typescript
function copy(
panelLibraryUuid: string,
libraryUuid: string,
targetLibraryUuid: string,
targetClassification?: ILIB_ClassificationIndex | Array<string>,
newPanelLibraryName?: string,
): Promise<string | undefined>;1
2
3
4
5
6
7
2
3
4
5
6
7
Parameters
Parameter | Type | Description |
|---|---|---|
panelLibraryUuid | string | Panel library UUID |
libraryUuid | string | Library UUID, you can use LIB_LibrariesList APIs in |
targetLibraryUuid | string | Target library UUID |
targetClassification | ILIB_ClassificationIndex | Array<string> | (Optional) Classification in the target library |
newPanelLibraryName | string | (Optional) New panel library name. If a panel library with the same name exists in the target library, the copy will fail |
Returns
Promise<string | undefined>
UUID of the new panel library in the target library