• Publishes an item and its data, metadata, and resources as an AGOL item.

    Parameters

    • itemInfo: any

      Item's item section

    • folderId: string

      Id of folder to receive item; null indicates that the item goes into the root folder; ignored for Group item type

    • destinationAuthentication: UserSession

      Credentials for for requests to where the item is to be created

    • Optional itemThumbnailUrl: string

      URL to image to use for item thumbnail

    • Optional itemThumbnailAuthentication: UserSession

      Credentials for requests to the thumbnail source

    • Optional dataFile: File

      Item's data section

    • Optional metadataFile: File

      Item's metadata file

    • Optional resourcesFiles: File[]

      Item's resources

    • access: string = "private"

      Access to set for item: "public", "org", "private"

    Returns Promise<ICreateItemResponse>

    A promise that will resolve with an object reporting success or failure and the Solution id