Skip to main content
POST
/
editAthleteWebsite
Update athlete profile
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/editAthleteWebsite \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "Shakil",
  "last_name": "Dhanga",
  "athlete": "athlete_slug_01",
  "DOB": "1970-01-01",
  "school": "Abilene Christian University",
  "university_id": 1,
  "location": "Austin, TX",
  "skills": "Content Creation, Fitness, Gaming",
  "sport_category_id": 24,
  "expected_graduation_date": "2020",
  "gender": "Male",
  "bio": "Student-athlete and content creator.",
  "highlights": "All-conference 2023",
  "weight": "65",
  "experience": "3 years varsity",
  "contactNumber": 5846161322,
  "cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
  "profile_photo": "storage/images/profile_photo/example.png",
  "team_photo_profile": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
  "team_photo_cover": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
  "jersey_no": "786",
  "height": 67,
  "height_ft": 5,
  "height_in": 7,
  "hat_size": "5",
  "shirt_size": "L - (Large)",
  "pants_size": "32",
  "shoes_size": "7.5",
  "team_name": "Wildcats",
  "team_member_color": "#1a1a2e",
  "team_athlete_name": [],
  "is_private": "N",
  "us_citizen": "Y",
  "marketing_notification": "Y"
}
'

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

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
first_name
string
Example:

"Shakil"

last_name
string
Example:

"Dhanga"

athlete
string | null

Athlete identifier

Example:

"athlete_slug_01"

DOB
string<date>
Example:

"1970-01-01"

school
string
Example:

"Abilene Christian University"

university_id
integer
Example:

1

location
string | null
Example:

"Austin, TX"

skills
string | null

Comma-separated skill names

Example:

"Content Creation, Fitness, Gaming"

sport_category_id
integer
Example:

24

expected_graduation_date
string

Graduation year

Example:

"2020"

gender
enum<string>
Available options:
Male,
Female,
Other
Example:

"Male"

bio
string | null
Example:

"Student-athlete and content creator."

highlights
string | null
Example:

"All-conference 2023"

weight
string | null
Example:

"65"

experience
string | null
Example:

"3 years varsity"

contactNumber
number
Example:

5846161322

cover_photo
string | null

Image path or base64 with data URI prefix (e.g. data:image/png;base64,...)

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."

profile_photo
string | null

Image path or base64 encoded with data URI prefix (e.g. data:image/png;base64,...)

Example:

"storage/images/profile_photo/example.png"

team_photo_profile
string | null

Team profile photo path or base64 with data URI prefix (e.g. data:image/png;base64,...)

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."

team_photo_cover
string | null

Team cover photo path or base64 with data URI prefix (e.g. data:image/png;base64,...)

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."

jersey_no
string | null
Example:

"786"

height
integer | null

Total height in inches

Example:

67

height_ft
integer | null

Height feet component

Example:

5

height_in
integer | null

Height inches component

Example:

7

hat_size
string | null
Example:

"5"

shirt_size
string | null
Example:

"L - (Large)"

pants_size
string | null
Example:

"32"

shoes_size
string | null
Example:

"7.5"

team_name
string | null
Example:

"Wildcats"

team_member_color
string | null

Team color hex or name

Example:

"#1a1a2e"

team_athlete_name
string[] | null

Team athlete names

Example:
[]
is_private
enum<string>

Y = private profile, N = public

Available options:
Y,
N
Example:

"N"

us_citizen
enum<string>

US citizenship status

Available options:
Y,
N
Example:

"Y"

marketing_notification
string | null

Marketing notification preference

Example:

"Y"

Response

200

Profile updated