Rate a Call

POST /calls/{call_id}/rate/

Use the POST /calls/{call_id}/rate/ endpoint to submit a rating for a completed call. Ratings help evaluate the quality of the service provided during the call.

Path Parameter

Parameter

Type

Description

Required

call_id

string

The unique ID of the call.

Yes

Request Body

Parameter

Type

Description

Required

rating

number

The numerical rating for the call.

Yes

reason

string

The reason for the rating (optional).

No

Example Request Body

{
  "rating": 4.5,
  "reason": "The mechanic was very professional and resolved my issue quickly."
}

Response

Status Code: 201 Created

Response Body

Parameter

Type

Description

rating

number

The submitted numerical rating.

reason

string

The reason for the rating, if provided.

Example Response Body

{
  "rating": 4.5,
  "reason": "The mechanic was very professional and resolved my issue quickly."
}

Last updated