diff --git a/src/main/java/eu/dissco/core/digitalspecimenprocessor/controller/DigitalSpecimenController.java b/src/main/java/eu/dissco/core/digitalspecimenprocessor/controller/DigitalSpecimenController.java index a65b93c..3fa96d7 100644 --- a/src/main/java/eu/dissco/core/digitalspecimenprocessor/controller/DigitalSpecimenController.java +++ b/src/main/java/eu/dissco/core/digitalspecimenprocessor/controller/DigitalSpecimenController.java @@ -34,7 +34,7 @@ public ResponseEntity upsertDigitalSpecimen(@RequestBody DigitalSpecimenEvent event) throws TransformerException, NoChangesFoundException { log.info("Received digitalSpecimen upsert: {}", event); var result = processingService.handleMessages(event); - return ResponseEntity.ok(result); + return ResponseEntity.status(HttpStatus.CREATED).body(result); } @ExceptionHandler(NoChangesFoundException.class)