Skip to main content
POST
/
athleteBlockUnblockFan
Block or unblock a fan user
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/athleteBlockUnblockFan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": 1,
  "action": "block"
}
'

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
user_id
integer

Target user ID to block/unblock (NOT fan_id)

Example:

1

action
enum<string>

Action to perform (case-sensitive)

Available options:
Block,
Unblock
Example:

"block"

Response

200

Block status toggled