Skip to main content
Submit a rating and optional comment for a ride you participated in. The ride must be in COMPLETED status before feedback can be accepted. Authentication required — include Authorization: Bearer <token> in the request header.

Request

POST /rides/feedback/{rideId}
number
required
The unique ID of the completed ride.
integer
required
Your rating for the ride. Must be an integer between 1 and 5 (inclusive).
string
Optional written feedback. Stored in riderFeedback on the ride (up to 600 characters).

Response

number
Unique ride identifier.
string
Remains COMPLETED after feedback is submitted.
number
The rating you submitted (1–5).
string
The comment you submitted, or an empty string if none was provided.
number
ID of the rider.
number
ID of the driver.
number
Fare for the ride.
string
Pickup address.
string
Drop-off address.
string
ISO 8601 timestamp of ride creation.

Example

Feedback can only be submitted for rides with status COMPLETED. Attempting to submit feedback on a ride in any other status returns a 400 Bad Request.
If rating is missing, non-numeric, or outside the range 1–5, the server returns 400 Bad Request with the message: "Rating must be a number between 1 and 5."
Omitting the comment field is valid — the server stores an empty string for riderFeedback in that case. You must still provide a valid rating.