collections()

Get the collections and collection details for a given slot

Parameters

export type SlotCollectionsProps = {
    slotId: string;
    inclueDeactivated?: boolean; // if true, response includes deactivated collections
    idOnly?: boolean; // if true, response includes collectionIds only
};

Examples

const collections = await assetlayer.slots.collections({
    slotId: 'slotId',
    includeDeactivated: true
});
const collectionIds = await assetlayer.slots.collections({
    slotId: 'slotId',
    includeDeactivated: true,
    idOnly: true
});

Return Types

type ReturnType = Collection[] | string[];
pageCollection

Alternatives

pagegetSlotCollections()pagegetSlotCollectionIds()

Last updated