Skip to main content
POST
/
business-role
/
save
Create or update business role
curl --request POST \
  --url http://localhost/mogl/mogl-admin-dashboard/business-role/save \
  --header 'Content-Type: application/json' \
  --cookie mogl_session= \
  --data '
{
  "name": "Manager",
  "status": "A",
  "id": 3
}
'
{
  "message": "Data inserted successfully",
  "status": "success",
  "errors": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

mogl_session
string
cookie
required

Session-based authentication via cookies + CSRF token

Body

application/json
name
string
required

Role name (must be unique)

Example:

"Manager"

status
enum<string>
required

A=Active, I=Inactive

Available options:
A,
I
Example:

"A"

id
integer

Pass ID to update existing, omit for new

Example:

3

Response

Business role saved

message
string
Example:

"Data inserted successfully"

status
string
Example:

"success"

errors
string[]