fix bugs
diff --git a/plstackapi/core/views/roles.py b/plstackapi/core/views/roles.py
index 74fe789..b8c279c 100644
--- a/plstackapi/core/views/roles.py
+++ b/plstackapi/core/views/roles.py
@@ -18,7 +18,7 @@
         if 'auth' not in data:
             return Response(status=status.HTTP_400_BAD_REQUEST)        
         elif 'role' in data:
-            role = add_role(data['auth'], data['role']['name'])
+            role = add_role(data['auth'], data['role']['role_type'])
             serializer = RoleSerializer(data=role)
             return Response(serializer.data, status=status.HTTP_201_CREATED)
         else: