Use the update
method to rename a directory
try {
const directoryId = 'directory_id_here' // The ID of the directory to rename
const newName = 'new_name_here' // The new directory name
const result = await sdk.directory.update(directoryId, newName)
} catch (error) {
console.error(error.message)
}
Params
directoryId
- The ID of the directory to be zipped and downloaded.newName
- The new directory name
Required API Key Permission
CREATE_DIRECTORY