client.updateUnionField({
apiId: 'target',
displayName: 'Placement target',
modelApiId: 'DynamicRow',
reverseField: {
modelApiIds: [
<VARIOUS MODELS>,
],
// Here should be an option for visibility, as is done in client.createUnionField.
// This would set the visibility for the reverse fields.
},
visibility: VisibilityTypes.ReadWrite, // This sets the visibitlity for the DynamicRow model.
})
Right now I am trying to update my union field, adding visibility: hidden for the reverse fields. This is not possible with the current management SDK. Although it is supported in createUnionField(), I can't delete my model because I would lose all my entries.
Also displayName should be supported for reverseField in updateUnionField().