در حال بارگذاری…
Deletes a rating by its ID.
| Permission | Description |
|---|---|
| view (ratable) | Must have view permission on the ratable |
ratings.delete | Delete your own ratings |
ratings.delete_any | Delete any rating (admin only) |
| Name | Type | Required | Description | Example |
|---|
| rating-id | int | Yes | ID of the rating to delete | 123 |
Rating was successfully deleted. Despite the 204, this endpoint does return a JSON body — a localized confirmation message.
HTTP defines 204 as bodyless, so some clients and proxies discard it; treat the body as informational,
not something to depend on.
{
"message": "Rating deleted successfully."
}
Localized from messages.ratings.deleted_successfully (fa: “امتیاز با موفقیت حذف شد.”).
| Status | Description | Reference |
|---|---|---|
| 401 | Unauthorized | Authentication error |
| 403 | Forbidden (no permission) | Permission error |
| 404 | Not found | Not-found error |