diff --git a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/DataCatalogueImpl.java b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/DataCatalogueImpl.java index 1b46011..561d921 100644 --- a/src/main/java/org/gcube/datacatalogue/ckanutillibrary/DataCatalogueImpl.java +++ b/src/main/java/org/gcube/datacatalogue/ckanutillibrary/DataCatalogueImpl.java @@ -2354,7 +2354,7 @@ public class DataCatalogueImpl implements DataCatalogue{ String pathUpdatePatch = getCatalogueUrl() + "/api/3/action/package_patch"; HttpPost httpPostRequest = new HttpPost(pathUpdatePatch); - httpPostRequest.setHeader("Authorization", apiKey); + httpPostRequest.setHeader("Authorization", CKAN_TOKEN_SYS); StringEntity params = new StringEntity(jsonRequest.toJSONString(), ContentType.APPLICATION_JSON); httpPostRequest.setEntity(params);