GitHub user obermeier added a comment to the discussion: CRUDApi return values
@dominikriemer very good point In the current implementation delete has a [Message.class](https://github.com/apache/streampipes/blob/dev/streampipes-model/src/main/java/org/apache/streampipes/model/message/Message.java) as response with subtypes SuccessMessage and ErrorMessage . If delete is used jackson could not create the message becuase it is abstract. ```Cannot construct instance of `org.apache.streampipes.model.message.Message` (no Creators, like default constructor, exist)``` Is there a mechanism in jackson to instanciate the matching class? Do you prefer to return the generic Message or a subtype (Adding some logic to find which type fits best) The signature would be something like this. ```org.apache.streampipes.model.message.Message create(V element);``` GitHub link: https://github.com/apache/streampipes/discussions/1468#discussioncomment-5522623 ---- This is an automatically sent email for dev@streampipes.apache.org. To unsubscribe, please send an email to: dev-unsubscr...@streampipes.apache.org