diff --git a/dbrepo-metadata-service/rest-service/src/main/java/at/ac/tuwien/ifs/dbrepo/endpoints/IdentifierEndpoint.java b/dbrepo-metadata-service/rest-service/src/main/java/at/ac/tuwien/ifs/dbrepo/endpoints/IdentifierEndpoint.java index 02ce030220cf6ef1f1b7ef1b780f743678095c16..60316b008566a99709b6cd3554d1e211ad0483f9 100644 --- a/dbrepo-metadata-service/rest-service/src/main/java/at/ac/tuwien/ifs/dbrepo/endpoints/IdentifierEndpoint.java +++ b/dbrepo-metadata-service/rest-service/src/main/java/at/ac/tuwien/ifs/dbrepo/endpoints/IdentifierEndpoint.java @@ -328,7 +328,7 @@ public class IdentifierEndpoint extends AbstractEndpoint { throws SearchServiceException, DatabaseNotFoundException, SearchServiceConnectionException, MalformedException, DataServiceConnectionException, IdentifierNotFoundException, ExternalServiceException { log.debug("endpoint publish identifier, identifierId={}", identifierId); - return ResponseEntity.status(HttpStatus.CREATED) + return ResponseEntity.accepted() .body(metadataMapper.identifierToIdentifierDto( identifierService.publish(identifierService.find(identifierId)))); }