# Role Endpoints

Get All Roles from database

 

GET /admin/role
1

Create New Role

 
 

GET /admin/role/store
PAYLOAD name, permissions
1
2

Here permissions is the array of permission ids

Update Role

 
 

PATCH /admin/role/{role_id}
PAYLOAD name, permissions
1
2

Delete Role

 
 

DELETE /admin/role/{role_id}
PAYLOAD name, permissions
1
2