Learn R Programming

Rlabkey (version 3.3.0)

labkey.security.renameContainer: Rename an existing container at the given container path

Description

Renames an existing container at the given container path. This action allows for updating the container name, title, or both.

Usage

labkey.security.renameContainer(baseUrl=NULL, folderPath,
    name=NULL, title=NULL, addAlias=TRUE)

Value

Returns a success message for the container rename action.

Arguments

baseUrl

A string specifying the baseUrl for the labkey server.

folderPath

A string specifying the folderPath to be renamed. Additionally, the container entity id is also valid.

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).

Author

Cory Nathe

Details

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.

See Also

labkey.getFolders, labkey.security.getContainers, labkey.security.createContainer, labkey.security.deleteContainer labkey.security.moveContainer

Examples

Run this code
if (FALSE) {

library(Rlabkey)

labkey.security.renameContainer(baseUrl="http://labkey/", folderPath = "/home/OriginalFolder",
    name = "NewFolderName", title = "New Folder Title", addAlias = TRUE
)

}

Run the code above in your browser using DataLab