Delete feedback
Deletes an existing feedback record by its UUID.
/api/v1/feedbacks/{id}DeleteFeedback is an administrator-only command in Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and
summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs (DELETE /rating/api/v1/feedbacks/{id}) that deletes an existing FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs record from Azure Cosmos DB, publishes Feedback deletedEventv1.0.0Feedback deletedIndicates that a customer feedback rating was deleted for a book. Rating API
publishes this event so Catalog can remove ...Ownercatalog-experience-teamSchemaDiagramOpen docs to Kafka, invalidates cached feedback lists and summaries, and returns 204 No Content.
Overview
| Property | Value |
|---|---|
| Bounded Context | Reviews |
| Owner Service | Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs |
| Protocol / Format | HTTP DELETE, path parameter only, empty response (204 No Content) |
| Gateway Endpoint | DELETE /rating/api/v1/feedbacks/{id} (service path /api/v1/feedbacks/{id}) |
| Authentication & Authorization | Microsoft Entra ID JWT — admin policy (role admin and scopes rating_read, rating_write) |
| Idempotency / Concurrency | Not idempotent across retries; repeat calls return 404 Not Found; Cosmos DB ETag optimistic concurrency |
| Rate Limit / Caching | Global concurrency (100), per-IP fixed-window (30 req/min), and per-user token bucket (30 tokens, +20 per 10s, queue 5); invalidates feedback list and AI summary caches |
| Contract Version | 1.0.0 (ApiVersions.V1) |
Request & Response Contract
Path Parameters
Accepts no request body.
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Valid UUID | Unique identifier of the feedback record to delete |
Success Response (204 No Content)
Empty response body confirms the feedback record was deleted.
Behavior & Side Effects
- Azure Cosmos DB deletion: Queries Cosmos DB (
ratingdb/feedbacks, partition key/bookId), deletes the record with ETag concurrency protection, and returns404 Not Foundif absent. - Kafka integration event: Publishes Feedback deletedEventv1.0.0Feedback deletedIndicates that a customer feedback rating was deleted for a book. Rating API publishes this event so Catalog can remove ...Ownercatalog-experience-teamSchemaDiagramOpen docs to Feedback Deleted ChannelChannelv1.0.0Feedback Deleted ChannelKafka topic owned by the contributor team carrying Rating API feedback-deleted events consumed by Catalog API to update ...Ownercatalog-experience-teamOpen docs so Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs recalculates the book’s derived rating summary.
- Cache invalidation: Clears cached feedback list entries tagged for
bookIdand the cached AI rating summary for that book.
OpenAPI metadata declares 404 Not Found as application/problem+json, whereas runtime responses return application/json with { "detail": "The requested resource was not found." }.
Error Responses
| Status / Code | Condition | Client Recovery Action |
|---|---|---|
400 Bad Request | id path segment is not a valid UUID | Provide a valid feedback UUID in the path and retry |
401 Unauthorized | Missing, expired, or invalid Entra ID bearer token | Acquire a valid Entra ID access token and retry |
403 Forbidden | Valid token missing the admin role or rating_read/rating_write scopes | Authenticate as a store administrator with the required scopes |
404 Not Found | No feedback record exists with the specified id | Refresh the moderation list; do not retry unchanged |
409 Conflict | Cosmos DB ETag concurrency conflict | Re-fetch the feedback state and retry if still present |
429 Too Many Requests | Rate limit quota exceeded (Retry-After header included) | Wait for the Retry-After interval before retrying |
500 Internal Server Error | Unexpected Cosmos DB, Kafka, or server failure (traceId included) | Retry with exponential backoff; inspect service logs using traceId |
Related Documentation
- Rating APIServicev1.0.0Rating APIInternal HTTP and A2A gRPC service for collecting, listing, deleting, and summarizing customer feedback for Catalog book...PublishesFeedbackCreatedIntegrationEvent, FeedbackDeletedIntegrationEventSubscribesCreateFeedback, DeleteFeedback +3APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs — Service overview, Azure Cosmos DB storage, and authorization policies.
- FeedbackEntityv1.0.0FeedbackRepresents an individual customer's rating and optional written review for a Catalog book.Ownercatalog-experience-teamOpen docs — Feedback document model.
- Create feedbackCommandv1.0.0Create feedbackCreates a feedback rating for a Catalog book and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs — Submit a new book feedback record.
- Feedback deletedEventv1.0.0Feedback deletedIndicates that a customer feedback rating was deleted for a book. Rating API publishes this event so Catalog can remove ...Ownercatalog-experience-teamSchemaDiagramOpen docs — Kafka event published on deletion.
- List feedbacksQueryv1.0.0List feedbacksReturns feedback for a book with pagination, sorting, and validation responses.Ownercatalog-experience-teamSchemaDiagramOpen docs — Retrieve feedback records to locate IDs.
Delete feedback schema
The feedback UUID is supplied as the id path parameter; the operation has no request body.
not allowedSchema does not contain any properties.