suspend fun updateTemplatedFields(node: TemplatedNode, input: UpdateTemplatedNodeInput, templateWasUpdated: Boolean = false)

Updates the TemplatedNode.templatedFields of a TemplatedNode based on the input Does not check authorization permissions, and does not save the provided node afterwards Validates the new value of the fields If templateWasUpdated, validates all fields. Requires that the new template is already set

Parameters

node

the node to update the templated fields of

input

defines how to update the templated fields

templateWasUpdated

if true, no longer existing templatedFields are removed, and all existing fields are validated

Throws

if the new/old value for a templated field is invalid


suspend fun updateTemplatedFields(node: TemplatedNode, templatedFields: OptionalInput<List<JSONFieldInput>>, templateWasUpdated: Boolean)

Updates the TemplatedNode.templatedFields of a TemplatedNode based on the templatedFields Does not check authorization permissions, and does not save the provided node afterwards Validates the new value of the fields If templateWasUpdated, validates all fields. Requires that the new template is already set

Parameters

node

the node to update the templated fields of

templatedFields

values to update the templatedFields

templateWasUpdated

if true, no longer existing templatedFields are removed, and all existing fields are validated

Throws

if the new/old value for a templated field is invalid, or a field does not exist