trait UploadPresetsTrait

Enables you to manage upload presets.

Learn more: Upload Presets method - Admin API

Properties

ApiClient $apiClient Defined in AdminApi class

Methods

uploadPresets(array $options = [])

Lists existing upload presets.

uploadPreset(string $name, array $options = [])

Retrieves the details of the specified upload preset.

deleteUploadPreset(string $name)

Deletes the specified upload preset.

updateUploadPreset(string $name, array $options = [])

Updates the specified upload preset.

createUploadPreset(array $options = [])

Creates a new upload preset.

Details

ApiResponse uploadPresets(array $options = [])

Lists existing upload presets.

Parameters

Name Type Description
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

See also

https://cloudinary.com/documentation/admin_api#get_upload_presets

ApiResponse uploadPreset(string $name, array $options = [])

Retrieves the details of the specified upload preset.

Parameters

Name Type Description
$name string The name of the upload preset.
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

See also

https://cloudinary.com/documentation/admin_api#get_the_details_of_a_single_upload_preset

ApiResponse deleteUploadPreset(string $name)

Deletes the specified upload preset.

Parameters

Name Type Description
$name string The name of the upload preset to delete.

Return Value

ApiResponse

See also

https://cloudinary.com/documentation/admin_api#delete_an_upload_preset

ApiResponse updateUploadPreset(string $name, array $options = [])

Updates the specified upload preset.

Parameters

Name Type Description
$name string The name of the upload preset.
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

See also

https://cloudinary.com/documentation/admin_api#update_an_upload_preset

ApiResponse createUploadPreset(array $options = [])

Creates a new upload preset.

Parameters

Name Type Description
$options array The optional parameters. See the Admin API documentation.

Return Value

ApiResponse

See also

https://cloudinary.com/documentation/admin_api#create_an_upload_preset