Skip to main content
POST
/
rate2Athlete
Rate an athlete (public)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/rate2Athlete \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": 1,
  "rating": 4.5,
  "review": "Excellent collaboration and timely delivery.",
  "posted_by": "Jane Partner",
  "posted_by_type": "Brand",
  "job_id": 1
}
'

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.

Body

application/json
user_id
integer

Athlete user ID (NOT athlete_id)

Example:

1

rating
number<float>
Example:

4.5

review
string
Example:

"Excellent collaboration and timely delivery."

posted_by
string

Reviewer name (optional)

Example:

"Jane Partner"

posted_by_type
string

Reviewer type (optional)

Example:

"Brand"

job_id
integer

Related job ID (optional)

Example:

1

Response

200

Rating submitted