Update Folder
Update Folder
To update a folder in Box you will need to call the following API.
curl -i -X PUT "https://api.box.com/2.0/folders/4353455" \
-H "authorization: Bearer <ACCESS_TOKEN>" \
-H "content-type: application/json" \
-d '{
"name": "New folder name"
}'await client.folders.updateFolderById(folderToUpdate.id, {
requestBody: {
name: updatedName,
description: 'Updated description',
} satisfies UpdateFolderByIdRequestBody,
} satisfies UpdateFolderByIdOptionalsInput);client.folders.update_folder_by_id(
folder_to_update.id, name=updated_name, description="Updated description"
)await client.Folders.UpdateFolderByIdAsync(folderId: folderToUpdate.Id, requestBody: new UpdateFolderByIdRequestBody() { Name = updatedName, Description = "Updated description" });try await client.folders.updateFolderById(folderId: folderToUpdate.id, requestBody: UpdateFolderByIdRequestBody(name: updatedName, description: "Updated description"))client.getFolders().updateFolderById(folderToUpdate.getId(), new UpdateFolderByIdRequestBody.Builder().name(updatedName).description("Updated description").build())await client.Folders.UpdateFolderByIdAsync(folderId: folderToUpdate.Id, requestBody: new UpdateFolderByIdRequestBody() { Name = updatedName, Description = "Updated description" });await client.folders.updateFolderById(folderToUpdate.id, {
requestBody: {
name: updatedName,
description: 'Updated description',
} satisfies UpdateFolderByIdRequestBody,
} satisfies UpdateFolderByIdOptionalsInput);Name restrictions
There are some restrictions to the folder name. Names containing non-printable
ASCII characters, forward and backward slashes (/, \), as well as names
with trailing spaces are prohibited.
Additionally, the names . and .. are reserved names and therefore
also prohibited.
Timeout
Timeout for this operation is 600 seconds. The operation will complete
after a HTTP 503 has been returned.