TransformationsTrait
trait TransformationsTrait
Enables you to manage stored transformations.
Learn more: Transformations method - Admin API
Properties
ApiClient | $apiClient | Defined in AdminApi class. |
Methods
transformations(array $options = [])
Lists stored transformations.
transformation(string|array $transformation, array $options = [])
Returns the details of a single transformation.
deleteTransformation(string|array $transformation, array $options = [])
Deletes the specified stored transformation.
updateTransformation(string|array $transformation, array $updates = [])
Updates the specified transformation.
createTransformation(string $name, Transformation|string|array $definition)
Creates a named transformation.
Details
ApiResponse
transformations(array $options = [])
Lists stored transformations.
ApiResponse
transformation(string|array $transformation, array $options = [])
Returns the details of a single transformation.
ApiResponse
deleteTransformation(string|array $transformation, array $options = [])
Deletes the specified stored transformation.
Deleting a transformation also deletes all the stored derived assets based on this transformation (up to 1000). The method returns an error if there are more than 1000 derived assets based on this transformation.
ApiResponse
updateTransformation(string|array $transformation, array $updates = [])
Updates the specified transformation.
ApiResponse
createTransformation(string $name, Transformation|string|array $definition)
Creates a named transformation.