curl --request POST \
--url http://localhost/mogl/mogl-backend/api/affiliateAthleteUpdate \
--header 'Content-Type: application/json' \
--data '
{
"athlete_id": 123,
"device": "iPhone 15",
"referred": "google",
"location": "New York, US",
"screen_size": "1920x1080",
"os": "iOS 17",
"browser": "Safari"
}
'Increments the affiliate view counter and logs visit analytics. Does NOT update athlete bio/photo.
curl --request POST \
--url http://localhost/mogl/mogl-backend/api/affiliateAthleteUpdate \
--header 'Content-Type: application/json' \
--data '
{
"athlete_id": 123,
"device": "iPhone 15",
"referred": "google",
"location": "New York, US",
"screen_size": "1920x1080",
"os": "iOS 17",
"browser": "Safari"
}
'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.
Athlete user ID (required)
123
Visitor device type
"iPhone 15"
Referrer URL
"google"
Visitor location
"New York, US"
Visitor screen size
"1920x1080"
Visitor operating system
"iOS 17"
Visitor browser
"Safari"
Affiliate view recorded