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

"Basketball"

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:

44

Response

Sport category saved

message
string
Example:

"Data inserted successfully"

status
string
Example:

"success"

errors
string[]