def METHOD_NAME(request):
  response = {
    'status': 0,
    'errors': None,
    'link': None
  }
  if 'link' not in request.POST:
    raise StructuredException(code="INVALID_REQUEST_ERROR", message=_('Error saving link'), data={'errors': 'Link is missing.'}, error_code=400)
  d = json.loads(smart_str(request.POST.get('link')))
  link = client.Link.from_dict(d)
  try:
    c = client.SqoopClient(conf.SERVER_URL.get(), request.user.username, request.LANGUAGE_CODE, ssl_cert_ca_verify=conf.SSL_CERT_CA_VERIFY.get())
    response['link'] = c.METHOD_NAME(link).to_dict()
  except RestException as e:
    response.update(handle_rest_exception(e, _('Could not create link.')))
  except SqoopException as e:
    response['status'] = 100
    response['errors'] = e.to_dict()
  return JsonResponse(response)