Skip to main content
POST
/
followAthlete
Follow/unfollow athlete
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/followAthlete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "type": "athlete"
}
'

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
id
integer
required

Athlete user ID

Example:

1

type
string
required

Follow type

Example:

"athlete"

Response

200

Follow toggled