View source: R/labkey.security.R
labkey.security.renameContainer | R Documentation |
Renames an existing container at the given container path. This action allows for updating the container name, title, or both.
labkey.security.renameContainer(baseUrl=NULL, folderPath,
name=NULL, title=NULL, addAlias=TRUE)
baseUrl |
A string specifying the |
folderPath |
A string specifying the |
name |
The new container name. If not specified, the container name will not be changed. |
title |
The new container title. If not specified, the container name will be used. |
addAlias |
Add alias of current container path for the current container name (defaults to true). |
This function renames an existing container at the given container path on the LabKey server. A new container name and/or title must be specified. If a new name is provided but not a title, the name will also be set as the container title.
Returns a success message for the container rename action.
Cory Nathe
labkey.getFolders
,
labkey.security.getContainers
,
labkey.security.createContainer
,
labkey.security.deleteContainer
labkey.security.moveContainer
## Not run:
library(Rlabkey)
labkey.security.renameContainer(baseUrl="http://labkey/", folderPath = "/home/OriginalFolder",
name = "NewFolderName", title = "New Folder Title", addAlias = TRUE
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.