---
title: "Submit Rating"
method: POST
path: "/trips/{trip_id}/rating"
tags: ["ratings"]
---

# Submit Rating

`POST /trips/{trip_id}/rating`

## Request

- Base URL: `https://api.noma.co.ke` (the document declares no server; this is the origin it was published from)
- URL: `https://api.noma.co.ke/trips/{trip_id}/rating`
- Auth: none declared

Public — the tracking link token is the secret (like /trips/tracking/{id}).

Stores the parent's rating for the trip, resolving the trip entry and the
student's primary guardian from the tracking token.

## Path parameters

- `trip_id` integer, required

## Request body

- TripRatingCreate
  - `rating` integer, required: 1-5 star rating.
  - `review` string, nullable: Optional feedback text.
  - `tracking_id` string, required: The parent's tracking link token — resolves the trip entry and guardian.

## Response `200`

Successful Response

- unknown

## Other responses

- `201`: Created
- `404`: Not Found
- `422`: Validation failed.

---

[API](https://skmtc.dev/noma/apis/driver-api.md) - [All operations](https://skmtc.dev/noma/apis/driver-api/llms.txt) - [OpenAPI document](https://skmtc.dev/noma/apis/driver-api/revisions/17d3d1a6929f?raw)
