Skip to main content
POST
/
affiliateAddLink
Add or update affiliate link
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/affiliateAddLink \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "link": "https://example.com",
  "title": "My Link",
  "type": "athlete",
  "id": 1,
  "icon": "link",
  "status": "A"
}
'

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

Affiliate URL

Example:

"https://example.com"

title
string
required

Link title

Example:

"My Link"

type
string
required

Link type

Example:

"athlete"

id
integer

Link ID (for update; omit for new)

Example:

1

icon
string

Icon identifier

Example:

"link"

status
string

Link status

Example:

"A"

Response

200

Link added/updated