Skip to main content
POST
/
affiliateAthleteUpdate
Record affiliate page view for an athlete
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.

Body

application/json
athlete_id
integer

Athlete user ID (required)

Example:

123

device
string | null

Visitor device type

Example:

"iPhone 15"

referred
string | null

Referrer URL

Example:

"google"

location
string | null

Visitor location

Example:

"New York, US"

screen_size
string | null

Visitor screen size

Example:

"1920x1080"

os
string | null

Visitor operating system

Example:

"iOS 17"

browser
string | null

Visitor browser

Example:

"Safari"

Response

200

Affiliate view recorded