Skip to main content
POST
/
business-category
/
save
Create or update business category
curl --request POST \
  --url http://localhost/mogl/mogl-admin-dashboard/business-category/save \
  --header 'Content-Type: application/json' \
  --cookie mogl_session= \
  --data '
{
  "name": "Technology",
  "status": "A",
  "id": 5
}
'
{
  "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

Category name (must be unique)

Example:

"Technology"

status
enum<string>
required

A=Active, I=Inactive

Available options:
A,
I
Example:

"A"

id
integer

Pass ID to update existing record, omit for new

Example:

5

Response

Business category saved

message
string
Example:

"Data inserted successfully"

status
string
Example:

"success"

errors
string[]