Skip to main content
POST
/
partnerRating
Rate a partner
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/partnerRating \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "user_id": 123,
  "rating": 4.5,
  "review": "Great to work with",
  "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.

Authorizations

Authorization
string
header
required

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

Body

application/json
user_id
integer
required

Partner user ID to rate

Example:

123

rating
number<float>
required

Rating value (1-5)

Example:

4.5

review
string | null

Written review text

Example:

"Great to work with"

job_id
integer | null

Job ID associated with the rating

Example:

1

Response

200

Rating submitted