- Operation Portal
- Auth
- Role and Permission
- Global data
- Merchant
- wallet
- Common API
- Device Map
- Back office
- Auth
- Institute
- Payments
- admission
- Global data
- Modules/submodules/features
- Packages
- General Config
- Institute Portal
- Auth
- Fees Management
- HR Management
- Student Management
- Master Settings
- Role and Permission
- Open Portal
- Admission
- Common API
- SMS
- Subject Config
- Shared API
- Admission User Portal
- SPG Server end test
- Public Api
- Payment Portal
- Dont Exec
role store
Developing
POST
/api/roles
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Header Params
Accept
stringÂ
required
Example:
application/json
Body Params multipart/form-data
name
stringÂ
required
Example:
accountant
permissions[]
array[string]
required
Example:
["general.config.index","general.config.edit","general.config.update"]
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://apidev.edufee.online/api/roles' \
--header 'Accept: application/json' \
--form 'name="accountant"' \
--form 'permissions[]="general.config.index"' \
--form 'permissions[]="general.config.edit"' \
--form 'permissions[]="general.config.update"'
Responses
🟢200OK
application/json
Body
object {0}
Example
{
"errors": null,
"message": "Success",
"status_code": 200,
"payload": {
"data": {
"message": "Role Assign Successfully",
"data": {
"guard_name": "api",
"name": "accountant",
"updated_at": "2025-05-07T07:13:22.000000Z",
"created_at": "2025-05-07T07:13:22.000000Z",
"id": 4
}
}
}
}