Skip to content

Commit

Permalink
add-availabilities.issue-4041
Browse files Browse the repository at this point in the history
* fix - change post to put
  • Loading branch information
m-timmermann committed Mar 25, 2024
1 parent d5adc5d commit 4e18bd9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public UpsertResponse execute() throws ServiceException {
}

String uriTemplate = service.getBaseURL() + "/products/{spn}/availabilities";
Response response = service.getClient().execute("POST", uriTemplate, params, headers, this.availability);
Response response = service.getClient().execute("PUT", uriTemplate, params, headers, this.availability);
if (response != null && response.getStatusCode() >= 200 && response.getStatusCode() < 300) {
return response.getBodyJSON(UpsertResponse.class);
}
Expand Down

0 comments on commit 4e18bd9

Please sign in to comment.