AssetsTrait
trait AssetsTrait
Enables you to manage the assets in your cloud.
Learn more: Resources method - Admin API
Properties
ApiClient | $apiClient | Defined in AdminApi class. |
Methods
Lists available asset types.
Lists all uploaded assets filtered by any specified options.
Lists assets with the specified tag.
Lists assets with the specified contextual metadata.
Lists assets currently in the specified moderation queue and status.
Lists assets with the specified public IDs.
Lists assets with the specified asset IDs.
Lists assets in the specified asset folder.
Find images based on their visual content.
Returns the details of the specified asset and all its derived assets.
Returns the details of the specified asset and all its derived assets by asset id.
Reverts to the latest backed up version of the specified deleted assets.
Updates details of an existing asset.
Deletes the specified assets.
Deletes assets by prefix.
Deletes all assets of the specified asset and delivery type, including their derived assets.
Deletes assets with the specified tag, including their derived assets.
Deletes the specified derived assets by derived asset ID.
Deletes derived assets identified by transformation and public_ids.
Relates an asset to other assets by public IDs.
Relates an asset to other assets by asset IDs.
Unrelates an asset from other assets by public IDs.
Unrelates an asset from other assets by asset IDs.
Details
ApiResponse
assetTypes()
Lists available asset types.
ApiResponse
assets(array $options = [])
Lists all uploaded assets filtered by any specified options.
ApiResponse
assetsByTag(string $tag, array $options = [])
Lists assets with the specified tag.
This method does not return matching deleted assets, even if they have been backed up.
ApiResponse
assetsByContext(string $key, string $value = null, array $options = [])
Lists assets with the specified contextual metadata.
This method does not return matching deleted assets, even if they have been backed up.
ApiResponse
assetsByModeration(string $kind, string $status, array $options = [])
Lists assets currently in the specified moderation queue and status.
ApiResponse
assetsByIds(string|array $publicIds, array $options = [])
Lists assets with the specified public IDs.
ApiResponse
assetsByAssetIds(string|array $assetIds, array $options = [])
Lists assets with the specified asset IDs.
ApiResponse
assetsByAssetFolder(string $assetFolder, array $options = [])
Lists assets in the specified asset folder.
ApiResponse
visualSearch(array $options = [])
Find images based on their visual content.
ApiResponse
asset(string $publicId, array $options = [])
Returns the details of the specified asset and all its derived assets.
Note that if you only need details about the original asset, you can also use the Uploader::upload or Uploader::explicit methods, which return the same information and are not rate limited.
ApiResponse
assetByAssetId(string $assetId, array $options = [])
Returns the details of the specified asset and all its derived assets by asset id.
Note that if you only need details about the original asset, you can also use the Uploader::upload or Uploader::explicit methods, which return the same information and are not rate limited.
ApiResponse
restore(string|array $publicIds, array $options = [])
Reverts to the latest backed up version of the specified deleted assets.
ApiResponse
update(string|array $publicId, array $options = [])
Updates details of an existing asset.
Update one or more of the attributes associated with a specified asset. Note that you can also update most attributes of an existing asset using the Uploader::explicit method, which is not rate limited.
ApiResponse
deleteAssets(string|array $publicIds, array $options = [])
Deletes the specified assets.
ApiResponse
deleteAssetsByPrefix(string $prefix, array $options = [])
Deletes assets by prefix.
Delete up to 1000 original assets, along with their derived assets, where the public ID starts with the specified prefix.
ApiResponse
deleteAllAssets(array $options = [])
Deletes all assets of the specified asset and delivery type, including their derived assets.
Supports deleting up to a maximum of 1000 original assets in a single call.
ApiResponse
deleteAssetsByTag(string $tag, array $options = [])
Deletes assets with the specified tag, including their derived assets.
Supports deleting up to a maximum of 1000 original assets in a single call.
ApiResponse
deleteDerivedAssets(string|array $derived_asset_ids)
Deletes the specified derived assets by derived asset ID.
The derived asset IDs for a particular original asset are returned when calling the asset
method to
return the details of a single asset.
ApiResponse
deleteDerivedByTransformation(string|array $publicIds, string|array $transformations = [], array $options = [])
Deletes derived assets identified by transformation and public_ids.
ApiResponse
addRelatedAssets(string $publicId, array $assetsToRelate, array $options = [])
Relates an asset to other assets by public IDs.
ApiResponse
addRelatedAssetsByAssetIds(string $assetId, array $assetsToRelate)
Relates an asset to other assets by asset IDs.
ApiResponse
deleteRelatedAssets(string $publicId, array $assetsToUnrelate, array $options = [])
Unrelates an asset from other assets by public IDs.
ApiResponse
deleteRelatedAssetsByAssetIds(string $assetId, array $assetsToUnrelate)
Unrelates an asset from other assets by asset IDs.