curl --request PUT \
--url http://localhost/mogl/mogl-backend/api/agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"email": "agent@example.com",
"contact_number": "+11234567890",
"dob": "1990-05-15",
"profile_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"agent_details": {
"agency_name": "Elite Sports Agency",
"linkedin_profile": "https://www.linkedin.com/in/example",
"personal_email": "agent@example.com",
"city": "Los Angeles"
}
}
'curl --request PUT \
--url http://localhost/mogl/mogl-backend/api/agent \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"first_name": "John",
"last_name": "Doe",
"email": "agent@example.com",
"contact_number": "+11234567890",
"dob": "1990-05-15",
"profile_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
"agent_details": {
"agency_name": "Elite Sports Agency",
"linkedin_profile": "https://www.linkedin.com/in/example",
"personal_email": "agent@example.com",
"city": "Los Angeles"
}
}
'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.
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Display name
"John Doe"
First name
"John"
Last name
"Doe"
Email address
"agent@example.com"
Contact phone number
"+11234567890"
Date of birth
"1990-05-15"
Base64 profile photo or file
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."
Nested agent detail fields
Show child attributes
Profile updated