Skip to content

Commit

Permalink
Change endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
euskalhenriko committed Feb 3, 2025
1 parent 5be2451 commit 6860d3e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ protected boolean downloadChunk(int chunk, String variable, File destinationDire

Logging.INSTANCE.info("requesting chunk " + chunk + " of " + variable + " to CDS API: " + jsonBody);

HttpResponse<JsonNode> response = Unirest.post(getEndpointUrl("/datasets/" + this.dataset))
HttpResponse<JsonNode> response = Unirest.post(getEndpointUrl("/resources/" + this.dataset))
.header("PRIVATE-TOKEN", apiKey).header("Accept", "application/json").body(jsonBody).asJson();

if (response.isSuccess()) {
Expand Down

0 comments on commit 6860d3e

Please sign in to comment.