VFC http request, http request put, http request patch, http request delete, WriteLocationToAsset, VFC update description, Error 403, cannot parse JSON SyntaxError: Unexpected end of JSON input
Note that in case only some of the variables (e.g. longitude and latitude) will be updated via PUT, then the rest of the variables under "location", variables that are not include in the PUT request, will be set to null:
in order to update only a single field, for example the "description" field, then in the github example above one needs to change the method to "Patch" (inside the http request node) and add following line:
msg.headers["Content-Type"] = "application/merge-patch+json";
in the function node:
in case of json syntax-error, please make sure the "Return" value is set to "a UTF string" inside the http request node: