Interface TypeAddFieldDefinitionAction

All Superinterfaces:
ResourceUpdateAction<TypeUpdateAction>, TypeUpdateAction

public interface TypeAddFieldDefinitionAction extends TypeUpdateAction

Defines a new field for a Type. Adding new required fields to a Type that is already referenced by existing entities can put those entities in a temporarily inconsistent state.

If a Type that is already in use requires new fields, we recommend making them optional (required set to false) whenever possible. Alternatively, any new required fields should be added one at a time followed by an update to all the resources using the Type. This prevents validation errors caused by an entity missing more than one required custom field.


Example to create an instance using the builder pattern

     TypeAddFieldDefinitionAction typeAddFieldDefinitionAction = TypeAddFieldDefinitionAction.builder()
             .fieldDefinition(fieldDefinitionBuilder -> fieldDefinitionBuilder)
             .build()
 
  • Field Details

    • ADD_FIELD_DEFINITION

      static final String ADD_FIELD_DEFINITION
      discriminator value for TypeAddFieldDefinitionAction
      See Also:
  • Method Details