acquia-dam-sdk / Components / ProductsApi
new ProductsApi(
client):ProductsApi
Create an instance of the ProductsApi class.
The Products API provides access to product information stored in Acquia Entries. The API allows you to create, retrieve, delete, and update products.
Provide an instance of ApiClient.
https://docs.acquia.com/acquia-dam/api-v2#tag/Products
createProduct(
params):Promise<CreateProductResult>
Create a new product
Information about the request
Promise<CreateProductResult>
Promise containing the new Product ID
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/createProduct
deleteProduct(
id):Promise<void>
Delete a product
string
Product ID
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/deleteProduct
getProduct(
id):Promise<GetProductResult>
Retrieve information about a product
string
Product ID
Promise<GetProductResult>
Promise containing information about a product
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/retrieveProductById
listChannels(
params?):Promise<ListChannelsResult>
Retrieve a list of channels
Information about the request
Promise<ListChannelsResult>
Promise containing a list of channels
https://docs.acquia.com/acquia-dam/api-v2#tag/Channels/operation/listChannels
listProductCategories(
params?):Promise<ListProductCategoriesResult>
Retrieve a list of product categories
Information about the request
Promise<ListProductCategoriesResult>
Promise containing a list of product categories
https://docs.acquia.com/acquia-dam/api-v2#tag/Categories/operation/listProductCategories
listProductsByChannel(
params):Promise<ListProductsByChannelResult>
The Channel Products endpoint returns a list of products associated with a given channel in Entries. Only the products and attributes that are configured for the channel will be included in the response
Information about the request
Promise<ListProductsByChannelResult>
Promise containing a list of products in the channel
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/listProductsForChannel
listProductTypes(
params?):Promise<ListProductTypesResult>
Retrieve a list of product types
Information about the request
Promise<ListProductTypesResult>
Promise containing a list of product types
https://docs.acquia.com/acquia-dam/api-v2#tag/Product-Types/operation/listProductTypes
renameProduct(
id,name):Promise<void>
Change a product's name
string
Product ID
string
New product name
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/renameProduct
searchProducts(
params?):Promise<SearchProductsResult>
Search for products
Information about the request
Promise<SearchProductsResult>
Promise containing a list of products
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/listProductsBySearchQuery
updateAttributes(
params):Promise<void>
Update a product's attribute values
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/updateAttributeValues
updateFeaturedImage(
params):Promise<void>
Update a product's featured image
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/updateFeaturedImage
updateParentProduct(
params):Promise<void>
Update a product's parent product
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/updateParentProduct
updateProductCategory(
params):Promise<void>
Update a product's categories
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/updateProductCategory
updateProductType(
params):Promise<void>
Update a product's type
Information about the request
Promise<void>
Promise containing no information
https://docs.acquia.com/acquia-dam/api-v2#tag/Products/operation/updateProductType