Sign inGet Started

bird assets folders update

Usage

Exemple de code
bird assets folders update <folder-id> [flags]

Description

Rename or move a media-library folder

Moves the folder and its descendants without changing asset URLs. Null parent_id moves it to the root. Moving into itself or a descendant is refused, as is a tree deeper than 10 levels.

Build the request from flags, a JSON AssetFolderUpdate body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Exemple de code
# print the body shape (no credentials needed)
bird assets folders update --example

# the body it prints:
Exemple de code
{
  "name": "Brand images"
}

Options

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--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.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird assets folders createCreate a folder in the media library
bird assets folders deleteDelete a folder and move its contents up
bird assets folders getGet a media-library folder by ID
bird assets folders listList workspace media-library folders

Poursuivez avec la documentation, les guides et les exemples sur ce sujet.