Function addAssetsToCollectionWithId

  • Adds assets to a collection with the given id.

    Example

    import { Showpad } from '@showpad/experience-app-sdk'

    const collection = {
    "id": "c3e2a7a48eea0209af74c0d45e616da6",
    "name": "Sample"
    }

    const assetSlugs = ['648b2eb8-6fa1-40f2-b787-39cb1d51db69']

    const collectionId = await Showpad.addAssetsToCollectionWithId(collection.id, assetSlugs)

    Parameters

    • collectionId: string
    • assetSlugs: string[]

    Returns Promise<string>

    Id of the collection the assets were added to.

Generated using TypeDoc