diff --git a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java index 45de58f7032df485bba04ab43545078e45b6570c..bd94e7fa1cfcb3392b57dd37f51c4f262e5e15fc 100644 --- a/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java +++ b/indexer-core/src/main/java/org/opengroup/osdu/indexer/api/DataPartitionSetupApi.java @@ -19,7 +19,7 @@ import org.opengroup.osdu.indexer.service.IClusterConfigurationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; -import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.context.annotation.RequestScope; @@ -40,7 +40,7 @@ public class DataPartitionSetupApi { private AuditLogger auditLogger; @PreAuthorize("@authorizationFilter.hasPermission('" + OPS + "')") - @PostMapping(path = "/cluster-settings", consumes = "application/json") + @PutMapping(path = "/cluster-settings", consumes = "application/json") public ResponseEntity<?> partitionInit() throws IOException { this.clusterConfigurationService.updateClusterConfiguration(); this.auditLogger.getConfigurePartition(new ArrayList<>());