suspend fun createComponentVersion(authorizationContext: GropiusAuthorizationContext, input: CreateComponentVersionInput): ComponentVersion
Creates a new ComponentVersion based on the provided input Checks the authorization status
Return
the saved created ComponentVersion
Parameters
authorizationContext
used to check for the required permission
input
defines the ComponentVersion
suspend fun createComponentVersion(component: Component, input: ComponentVersionInput, updateContext: NodeBatchUpdateContext): ComponentVersion
Creates a new ComponentVersion based on the provided input on component Does not check the authorization status, does not save the created nodes Validates the input
Return
the created ComponentVersion
Parameters
component
the Component the created ComponentVersion is part of
input
defines the ComponentVersion
updateContext
the context used to update the nodes