AdminCollectionsResource
admin/collections.AdminCollectionsResource
Methods
addProducts
addProducts(id
, payload
, customHeaders?
): ResponsePromise
<AdminCollectionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCollectionsRes
>
Description
Updates products associated with a Product Collection
create
create(payload
, customHeaders?
): ResponsePromise
<AdminCollectionsRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCollectionsRes
>
Created collection.
Description
Creates a collection.
delete
delete(id
, customHeaders?
): ResponsePromise
<DeleteResponse
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<DeleteResponse
>
Deleted response
Description
deletes a collection
list
list(query?
, customHeaders?
): ResponsePromise
<AdminCollectionsListRes
>
Parameters
customHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCollectionsListRes
>
a list of collections matching the query.
Description
Lists collections matching a query
removeProducts
removeProducts(id
, payload
, customHeaders?
): ResponsePromise
<AdminDeleteProductsFromCollectionRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminDeleteProductsFromCollectionRes
>
Description
Removes products associated with a Product Collection
retrieve
retrieve(id
, customHeaders?
): ResponsePromise
<AdminCollectionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCollectionsRes
>
the collection with the given id
Description
get a collection
update
update(id
, payload
, customHeaders?
): ResponsePromise
<AdminCollectionsRes
>
Parameters
id
stringRequiredcustomHeaders
Record<string, any>RequiredDefault: `{}`
Returns
ResponsePromise
<AdminCollectionsRes
>
the updated collection.
Description
Updates a collection