Skip to main content
POST
/
fan
/
update-profile
Update fan profile
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/fan/update-profile \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_name": "John",
  "last_name": "Doe",
  "email": "fan@example.com",
  "password": "SecurePass1!",
  "location": "Los Angeles, CA",
  "profile_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="
}
'

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
required
Example:

"John"

last_name
string
required
Example:

"Doe"

email
string<email> | null
Example:

"fan@example.com"

password
string<password>

Optional, updates password if provided

Example:

"SecurePass1!"

location
string
Example:

"Los Angeles, CA"

profile_photo
string

Base64 encoded photo

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg=="

Response

200

Profile updated