acquia-dam-sdk / Components / AssetsApi
new AssetsApi(
client):AssetsApi
Create an instance of the AssetsApi class.
Asset objects represent stored files in the DAM system. The API allows you to create, update, and delete Assets. You can search for assets, matching specific search criteria or load an individual asset by unique ID.
Provide an instance of ApiClient.
addAssetToCategories(
params):Promise<void>
Add an asset to one or more categories. For bulk handling of assets, use the CategoriesApi.
Information about the request
Promise<void>
Promise containing no data
https://docs.acquia.com/acquia-dam/api-v1#tag/Categories/operation/updateCategoryAssets
addAssetToCollections(
params):Promise<void>
Add an asset to one or more collections. For bulk handling of assets, use the CollectionsApi.
Information about the request
Promise<void>
Promise containing no data
https://docs.acquia.com/acquia-dam/api-v1#tag/Collections/operation/addOrRemoveAssetsFromCollections
completeChunkedUpload(
params):Promise<CompleteChunkedUploadResult>
Call this after all file chunks have uploaded to signal the completion of a chunked upload session.
After calling this endpoint, provide the file_id to the create function to create a new asset.
Information about the request
Promise<CompleteChunkedUploadResult>
Promise containing the file_id
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/uploadChunk3
createAsset(
params):Promise<CreateAssetResult>
Create a new asset using a URL, file data, or a file_id provided by a chunked upload.
For larger files, use a chunked upload.
Information about the request
Promise<CreateAssetResult>
Promise containing the asset's id
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/uploadAsset
deleteAlternatePreview(
params):Promise<void>
Remove an alternate preview from an asset.
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/alternatePreviewDelete
deleteAsset(
params):Promise<void>
Send an asset to the Pending Delete queue.
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetDelete
findAssetId(
params):Promise<string>
Find an asset's UUID by searching via filename or embed ID (external ID).
Information about the request
Promise<string>
Promise containing the asset's id
getAsset(
params):Promise<GetAssetResult>
Retrieve information about an individual asset.
Information about the request
Promise<GetAssetResult>
Promise containing the asset data
getMetadata(
params):Promise<GetMetadataResult>
Metadata subresource simply returns the metadata property of the asset.
The object structure returned by search endpoint and this method are identical.
All assigned fields for the asset will be included. Empty fields are repesented with an empty array.
Information about the request
Promise<GetMetadataResult>
Promise containing the asset's metadata only
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetMetadataRetrieve
getSecurity(
params):Promise<GetSecurityResult>
Security subresource simply returns the security property of the asset.
The object structure returned by search endpoint and this method are identical.
Information about the request
Promise<GetSecurityResult>
Promise containing the asset's security only
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetRetrieveSecurity
listAssetGroups():
Promise<ListAssetGroupsResult>
Get a list of Asset Groups that the calling User has permission to view.
Promise<ListAssetGroupsResult>
Promise containing a list of security groups
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetGroupsGet
listCategories(
categoryPath?):Promise<ListCategoriesResult>
Retrieve a list of child categories.
string
Optional parent category name. If omitted, the top-level categories will be returned.
Promise<ListCategoriesResult>
Promise containing a list of asset categories
https://docs.acquia.com/acquia-dam/api-v2#tag/Categories/operation/listAssetCategories
listCollections(
params):Promise<ListCollectionsResult>
Retrieve a list of collections.
Information about the request
Promise<ListCollectionsResult>
Promise containing a list of collections
https://docs.acquia.com/acquia-dam/api-v2#tag/Collections/operation/listCollections
listFileFormats():
Promise<ListFileFormatsResult>
Retrieve a list of recognized file formats.
Promise<ListFileFormatsResult>
a Promise containing a list of file formats
https://docs.acquia.com/acquia-dam/api-v1#tag/File-Formats/operation/getFileFormats
listIntegrationLinks():
Promise<ListIntegrationLinksResult>
Retrieve a list of integration links
Promise<ListIntegrationLinksResult>
a Promise containing a list of integration links
https://docs.acquia.com/acquia-dam/api-v1#tag/Integration-Links/operation/getIntegrationLinks
listUploadProfiles():
Promise<ListUploadProfilesResult>
Retrieve a list of upload profiles.
Promise<ListUploadProfilesResult>
a Promise containing a list of Upload Profiles
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/uploadAssetProfilesList
listVersions(
params):Promise<ListVersionsResult>
Retrieve a list of asset versions.
Information about the request
Promise<ListVersionsResult>
Promise containing a list of asset versions
https://docs.acquia.com/acquia-dam/api-v1#tag/Assets/operation/getAssetVersions
registerIntegrationLink(
params):Promise<RegisterIntegrationLinkResult>
Register a new Integration Link.
Information about the request
Promise<RegisterIntegrationLinkResult>
a Promise containing information about the created Integration Link
https://docs.acquia.com/acquia-dam/api-v1#tag/Integration-Links/operation/createLink
removeAssetFromCatgories(
params):Promise<void>
Remove an asset from one or more categories. For bulk handling of assets, use the CategoriesApi.
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v1#tag/Categories/operation/updateCategoryAssets
removeAssetFromCollections(
params):Promise<void>
Remove an asset from one or more collections. For bulk handling of assets, use the CollectionsApi.
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v1#tag/Collections/operation/addOrRemoveAssetsFromCollections
removeIntegrationLink(
uuid):Promise<void>
Remove an integration link.
string
The Integration Link UUID
Promise<void>
a Promise containing no information
https://docs.acquia.com/acquia-dam/api-v1#tag/Integration-Links/operation/removeLink
renameAsset(
params):Promise<void>
Change an asset's filename
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetRename
searchAssets(
params?):Promise<SearchAssetsResult>
Search for a list of assets via a query
Information about the request
Promise<SearchAssetsResult>
Promise containing a list of assets that meet the search criteria
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetListBySearchQuery
startChunkedUpload():
Promise<StartChunkedUploadResult>
Begins a chunked uploading session. The session_id in the response must be used for subsequent upload chunk and complete chunk calls. This session_id is good for 7 days.
Promise<StartChunkedUploadResult>
Promise containing the session_id
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/uploadChunk0
updateMetadata(
params):Promise<void>
Update an asset's metadata fields
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetMetadataUpdate
updateMetadataType(
params):Promise<void>
Change an asset's metadata type
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v1#tag/Assets/operation/updateMetadataType
updateSecurity(
params):Promise<void>
Update an asset's security fields
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/assetUpdateSecurity
uploadAlternatePreview(
params):Promise<void>
Upload a new file as an alternate preview to an Asset
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/alternatePreviewUpload
uploadChunk(
params):Promise<UploadChunkResult>
Upload each piece of the file. The tag in each Upload Chunk response must be used in the Complete Chunked Upload call
Information about the request
Promise<UploadChunkResult>
Promise containing the tag for the chunk
https://docs.acquia.com/acquia-dam/api-v2#tag/Assets/operation/uploadChunk1