Skip to main content
POST
/
updateDeviceToken
Update/register iOS device token
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/updateDeviceToken \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "deviceToken": "test-device-token-abc123",
  "udid": "device-udid-123",
  "deviceType": "iOS",
  "operatingSystem": "iOS 17"
}
'

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
deviceToken
string

Device token (NOT device_token)

Example:

"test-device-token-abc123"

udid
string

Device UDID (required)

Example:

"device-udid-123"

deviceType
string

Device type (NOT device_type)

Example:

"iOS"

operatingSystem
string

OS version (optional)

Example:

"iOS 17"

Response

200

Device token updated