Skip to main content
POST
/
agent
/
save
Create/update agent
curl --request POST \
  --url http://localhost/mogl/mogl-admin-dashboard/agent/save \
  --header 'Content-Type: multipart/form-data' \
  --cookie mogl_session= \
  --form 'first_name=<string>' \
  --form 'last_name=<string>' \
  --form email=jsmith@example.com \
  --form 'contact_number=<string>' \
  --form 'city=<string>' \
  --form 'agency_name=<string>' \
  --form 'linkedin_profile=<string>' \
  --form is_verified=123 \
  --form 'fixed_price_for_all_athlete=<string>' \
  --form 'status=<string>' \
  --form id=123 \
  --form 'password=<string>' \
  --form 'contact_number_old=<string>' \
  --form personal_email=jsmith@example.com \
  --form 'price_per_each_athlete=<string>' \
  --form 'fixed_price=<string>' \
  --form mogl_commission_in_percentage=123 \
  --form profile_photo='@example-file' \
  --form 'profile_photo_val=<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

multipart/form-data
first_name
string
required
last_name
string
required
email
string<email>
required
contact_number
string
required
city
string
required
agency_name
string
required
linkedin_profile
string
required
is_verified
integer
required

0 or 1

fixed_price_for_all_athlete
string
required
status
string
required

A or I

id
integer

Pass for update; omit for create

password
string
contact_number_old
string
personal_email
string<email>
price_per_each_athlete
string
fixed_price
string
mogl_commission_in_percentage
number<float>
profile_photo
file
profile_photo_val
string

Existing profile photo path when not uploading a new file

Response

200

Agent saved