Params

Param name Description
id
required

ID of the Gallery.

Validations:

  • Must be a String

target_folder
required

Target folder for the assets and folders

Validations:

  • Must be a Hash

target_folder[storage]
optional

Storage/media name of the folder

Validations:

  • Must be a String

target_folder[dirname]
required

Container relative path to the folder

Validations:

  • Must be a String

folders
optional

Array of Hashes for folders to be moved

Validations:

  • Must be an Array of nested elements

folders[container_id]
required

Container’ ID of the folder

Validations:

  • Must be a String

folders[storage]
optional

Storage/media name of the folder

Validations:

  • Must be a String

folders[dirname]
required

Container relative path to the folder

Validations:

  • Must be a String

asset_ids
optional

Array of asset ids to be moved

Validations:

  • Must be an array of any type

mode
optional

‘overwrite’ to replace existing folders or assets

Validations:

  • Must be a String