diff --git a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java index 1da35f1f297..1e03dd37d3d 100644 --- a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java +++ b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/SaveOrganisasjonBestillingCommand.java @@ -21,7 +21,7 @@ public class SaveOrganisasjonBestillingCommand implements Callable { public Long call() { return webClient .put() - .uri(builder -> builder.path("/api/v2/order/{uuid}").build(uuid)) + .uri(builder -> builder.path("/api/v1/order/{uuid}").build(uuid)) .header(HttpHeaders.AUTHORIZATION, "Bearer " + token) .retrieve() .bodyToMono(Long.class) diff --git a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java index 3f16945bb80..07321e794c4 100644 --- a/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java +++ b/apps/jenkins-batch-status-service/src/main/java/no/nav/registre/testnorge/jenkinsbatchstatusservice/consumer/command/UpdateOrganisasjonBestillingCommand.java @@ -23,7 +23,7 @@ public class UpdateOrganisasjonBestillingCommand implements Runnable { public void run() { webClient .put() - .uri(builder -> builder.path("/api/v2/order/{uuid}/items/{id}").build(uuid, id)) + .uri(builder -> builder.path("/api/v1/order/{uuid}/items/{id}").build(uuid, id)) .body(BodyInserters.fromPublisher(Mono.just(orderDTO), OrderDTO.class)) .header(HttpHeaders.AUTHORIZATION, "Bearer " + token) .retrieve()