def createReferencedFile(self, pid, path, name, ref_url, validate):
url = "<STR_LIT>".format(url_base=self.url_base)<EOL>data = {'<STR_LIT>': pid, '<STR_LIT>': path, '<STR_LIT>': name, '<STR_LIT>': ref_url, "<STR_LIT>": validate}<EOL>r = self._request('<STR_LIT:POST>', url, data=data)<EOL>if r.status_code != <NUM_LIT:200>:<EOL><INDENT>if r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotAuthorized(('<STR_LIT:POST>', url))<EOL><DEDENT>elif r.status_code == <NUM_LIT>:<EOL><INDENT>raise HydroShareNotFound((pid,))<EOL><DEDENT>else:<EOL><INDENT>raise HydroShareHTTPException((url, '<STR_LIT:POST>', r.status_code))<EOL><DEDENT><DEDENT>return r.json()<EOL>
Deprecated, use createReferenceURL. Create a Referenced Content File (.url)

                :param pid: The HydroShare ID of the resource for which the file should be created
                :param path: Folder path for the file to be created in
                :param name: Filename for the referenced file
                :param ref_url: url to be used in the referenced file
                :return: JsonResponse on success or HttpResponse with error status code on error

                :raises: HydroShareNotAuthorized if user is not authorized to perform action.
                :raises: HydroShareNotFound if the resource or resource file was not found.
                :raises: HydroShareHTTPException if an unexpected HTTP response code is encountered.