Skip to main content
PUT
/
agent
Update agent profile
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.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
name
string | null

Display name

Example:

"John Doe"

first_name
string | null

First name

Example:

"John"

last_name
string | null

Last name

Example:

"Doe"

email
string<email> | null

Email address

Example:

"agent@example.com"

contact_number
string | null

Contact phone number

Example:

"+11234567890"

dob
string<date> | null

Date of birth

Example:

"1990-05-15"

profile_photo
string | null

Base64 profile photo or file

Example:

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUg..."

agent_details
object

Nested agent detail fields

Response

200

Profile updated