Skip to main content
POST
/
athletes
/
save
Create/update athlete
curl --request POST \
  --url http://localhost/mogl/mogl-admin-dashboard/athletes/save \
  --header 'Content-Type: multipart/form-data' \
  --cookie mogl_session= \
  --form sport_category_id=123 \
  --form 'first_name=<string>' \
  --form 'last_name=<string>' \
  --form email=jsmith@example.com \
  --form 'contact_number=<string>' \
  --form university_id=123 \
  --form dob=2023-12-25 \
  --form expected_graduation_date=123 \
  --form 'status=<string>' \
  --form is_verified=123 \
  --form 'us_citizen=<string>' \
  --form 'gender=<string>' \
  --form id=123 \
  --form 'password=<string>' \
  --form 'contact_number_old=<string>' \
  --form 'jersey_no=<string>' \
  --form 'location=<string>' \
  --form profile_photo='@example-file' \
  --form cover_photo='@example-file' \
  --form 'profile_photo_val=<string>' \
  --form 'cover_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
sport_category_id
integer
required
first_name
string
required
last_name
string
required
email
string<email>
required
contact_number
string
required
university_id
integer
required
dob
string<date>
required
expected_graduation_date
integer
required
status
string
required

A or I

is_verified
integer
required

0 or 1

us_citizen
string
required

Y or N

gender
string
required
id
integer

Pass for update; omit for create

password
string
contact_number_old
string
jersey_no
string
location
string
profile_photo
file
cover_photo
file
profile_photo_val
string

Existing profile photo path when not uploading a new file

cover_photo_val
string

Existing cover photo path when not uploading a new file

Response

302

Redirect to athletes list