Skip to main content
POST
/
editPartnerWebsite
Edit partner website and profile (full update)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/editPartnerWebsite \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "test shakil company",
  "first_name": "Jane",
  "last_name": "Smith",
  "athlete": "<string>",
  "DOB": "1990-01-15",
  "school": "State University",
  "location": "Karachi",
  "skills": "Marketing, social media",
  "bio": "Company bio text",
  "business_category": 26,
  "highlights": "Top partner 2024",
  "weight": "N/A",
  "experience": "5 years",
  "contactNumber": "7016767465",
  "cover_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
  "profile_photo": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUg...",
  "team_photo_profile": "https://example.com/team-profile.jpg",
  "team_photo_cover": "https://example.com/team-cover.jpg",
  "facebook": "https://facebook.com/example",
  "company_website": "https://dev-app.mogl.online/register/partner/company-website",
  "height": "6 ft",
  "team_name": "Marketing Team",
  "team_member_color": "#2d9cdb",
  "team_athlete_name": [],
  "company_size": "51-200",
  "job_role": "Brand Manager"
}
'

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

Partner/brand display name

Example:

"test shakil company"

first_name
string | null

Partner first name

Example:

"Jane"

last_name
string | null

Partner last name

Example:

"Smith"

athlete
string | null

Athlete field (sent by frontend, not processed by backend)

DOB
string<date> | null

Date of birth (sent by frontend, not processed by backend)

Example:

"1990-01-15"

school
string | null

School (sent by frontend, not processed by backend)

Example:

"State University"

location
string | null

Partner location

Example:

"Karachi"

skills
string | null

Skills (sent by frontend, not processed by backend)

Example:

"Marketing, social media"

bio
string | null

Partner bio/description

Example:

"Company bio text"

business_category
integer | null

Business category ID

Example:

26

highlights
string | null

Highlights (sent by frontend, not processed by backend)

Example:

"Top partner 2024"

weight
string | null

Weight (sent by frontend, not processed by backend)

Example:

"N/A"

experience
string | null

Experience (sent by frontend, not processed by backend)

Example:

"5 years"

contactNumber
string | null

Contact phone number

Example:

"7016767465"

cover_photo

Base64 image array or existing URL string. For a single image, use a data URL prefix (data:image/png;base64,...) followed by encoded bytes.

Example:

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

profile_photo

Base64 image array or existing URL string. For a single image, use a data URL prefix (data:image/png;base64,...) followed by encoded bytes.

Example:

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

team_photo_profile
string | null

Team profile photo (sent by frontend, not processed by backend)

Example:

"https://example.com/team-profile.jpg"

team_photo_cover
string | null

Team cover photo (sent by frontend, not processed by backend)

Example:

"https://example.com/team-cover.jpg"

facebook
string | null

Facebook URL (sent by frontend, not processed by backend)

Example:

"https://facebook.com/example"

company_website
string | null

Company website URL

Example:

"https://dev-app.mogl.online/register/partner/company-website"

height
string | null

Height (sent by frontend, not processed by backend)

Example:

"6 ft"

team_name
string | null

Team name (sent by frontend, not processed by backend)

Example:

"Marketing Team"

team_member_color
string | null

Team member color (sent by frontend, not processed by backend)

Example:

"#2d9cdb"

team_athlete_name
string[] | null

Team athlete names (sent by frontend, not processed by backend)

Example:
[]
company_size
string | null

Company size

Example:

"51-200"

job_role
string | null

Job role/title

Example:

"Brand Manager"

Response

200

Website/profile updated