addPortalItem

suspend fun addPortalItem(portalItem: PortalItem, contentParameters: PortalItemContentParameters, portalFolder: PortalFolder? = null): Result<Unit>

Adds the specified item to the portal in the given folder.

Return

a Result indicating if the operation is successful or not

Since

200.0.0

Parameters

portalItem

the new item (not loaded) to be added to the portal

contentParameters

the content parameters for the item to be added

portalFolder

the folder in which to create the item. If null, the item will be added to the user's root folder.