def METHOD_NAME(request):
  response = {'status': -1}
  name = request.POST.get('name', '')
  collections = json.loads(request.POST.get('collections', '[]'))
  client = SolrClient(request.user)
  response['status'] = 0
  response['response'] = client.METHOD_NAME(name, collections)
  response['alias'] = {'name': name, 'type': 'alias', 'collections': collections, 'isSelected': False}
  response['message'] = _('Alias created or modified!')
  return JsonResponse(response)