Skip to main content
POST
/
affiliateLinkSortOrder
Update affiliate link sort order
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/affiliateLinkSortOrder \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sort_order": [
    {
      "id": 1,
      "sort_order": 1
    },
    {
      "id": 2,
      "sort_order": 2
    }
  ]
}
'

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
sort_order
object[]
required

Array of link IDs with their new sort order

Example:
[
{ "id": 1, "sort_order": 1 },
{ "id": 2, "sort_order": 2 }
]

Response

200

Sort order updated