public ResourceRepresentation post(String path, CumulocityMediaType mediaType, ResourceRepresentation representation) {
WebRequestBuilder builder = authorizedRequest(path).type(mediaType);
if (platformParameters.isRequireResponseBody()) {
builder.accept(mediaType);
}
return builder.post(representation, HttpConnection.HTTP_CREATED, representation.getClass());
}
public ResourceRepresentation put(String path, CumulocityMediaType mediaType, ResourceRepresentation representation) {
WebRequestBuilder builder = authorizedRequest(path).type(mediaType);
if (platformParameters.isRequireResponseBody()) {