Rename or move a media-library folder
/v1/asset-folders/{folder_id}const folder = await bird.assets.folders.update(
"asf_01krdgeqcxet5s7t44vh8rt9mg",
{ name: "Autumn campaign" },
);
console.log(folder.path);folder = client.assets.folders.update("asf_01krdgeqcxet5s7t44vh8rt9mg", name="Autumn campaign")
print(folder.path)folder, err := client.Assets.Folders.Update(context.Background(), "asf_01krdgeqcxet5s7t44vh8rt9mg", bird.AssetsFoldersUpdateParams{Name: bird.Ptr("Autumn campaign")})
if err != nil {
log.Fatal(err)
}
fmt.Println(*folder.Path)$params = (new AssetFolderUpdate())->setName('Autumn campaign');
$folder = $bird->assets->folders->update('asf_01krdgeqcxet5s7t44vh8rt9mg', $params);
echo $folder->getPath();bird assets folders update <folder-id> --name 'Brand images'curl -X PATCH "https://us1.platform.bird.com/v1/asset-folders/{folder_id}" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "Brand images"
}'{
"created_at": "2026-05-20T09:14:52Z",
"updated_at": "2026-05-25T16:42:01Z",
"id": "asf_01krdgeqcxet5s7t44vh8rt9mg",
"parent_id": "asf_01krdgeqcxet5s7t44vh8rt9mg"
}
Renames a folder, moves it, or both. Send parent_id to move the folder into
another folder, or null to move it to the top level.
Moving a folder carries its subfolders and assets with it and changes no URLs, so messages that embed those assets are unaffected. A folder cannot be moved into itself or into one of its own subfolders, and the resulting tree cannot exceed 10 levels.
Parámetros
folder_idstringID of the asset folder.
Cuerpo de la solicitud
nameThe folder's display name. Must be unique among folders sharing the same parent, compared without regard to case. Cannot contain /.
parent_idThe folder to move this one into. Send null to move it to the top level of the library. A folder cannot be moved into itself or into one of its own subfolders.
Carga de respuesta
created_atupdated_atidnameThe folder's display name. Unique among folders sharing the same parent, compared without regard to case.
parent_idThe folder this one sits in, or null when it sits at the top level of the library.
pathThe folder's location written out from the top level, such as /Marketing/Logos. Provided so a caller can display a folder without walking its parents.
Recursos relacionados
Continúa con la documentación, guías y ejemplos de este tema.