|
|
|
@ -155,6 +155,7 @@ public class Item extends GCatClient implements org.gcube.gcat.api.interfaces.It
|
|
|
|
|
initRequest();
|
|
|
|
|
gxhttpStringRequest.path(name);
|
|
|
|
|
String moderationContentString = (new ObjectMapper()).writeValueAsString(moderationContent);
|
|
|
|
|
gxhttpStringRequest.header("Content-Type", GCatConstants.APPLICATION_JSON_CHARSET_UTF_8);
|
|
|
|
|
gxhttpStringRequest.withBody(moderationContentString);
|
|
|
|
|
HttpURLConnection httpURLConnection = gxhttpStringRequest.post();
|
|
|
|
|
return parseHttpURLConnection(httpURLConnection);
|
|
|
|
|