Delete publisher
Deletes an existing publisher from the Catalog.
/api/v1/publishers/{id}DeletePublisher permanently deletes a publisher record from 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 (DELETE /catalog/api/v1/publishers/{id}) and returns 204 No Content. Deletion is rejected with 400 Bad Request when any active book references the publisher.
Overview
| Property | Value |
|---|---|
| Bounded Context | Catalog |
| Owner Service | 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 |
| Protocol / Format | HTTP DELETE, path parameter only, empty response (204 No Content) |
| Gateway Endpoint | DELETE /catalog/api/v1/publishers/{id} (service path /api/v1/publishers/{id}) |
| Authentication & Authorization | Microsoft Entra ID JWT — business_user policy (role business_user or admin and scopes catalog_read, catalog_write) |
| Idempotency / Concurrency | Not idempotent across retries; repeating a completed delete returns 404 Not Found; no x-request-id header is enforced |
| Rate Limit / Caching | Global concurrency (100) and fixed-window (30 req/min) limiters plus per-user token bucket; invalidates publisher and book caches |
| Contract Version | 1.0.0 (ApiVersions.V1) |
Request & Response Contract
Path Parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
id | string (uuid) | Yes | Valid UUID; must not be referenced by any active book | Unique identifier of the publisher to delete |
Behavior & Side Effects
- Referential integrity guard: Rejects deletion with
400 Bad Request("Publisher has books and cannot be deleted") if any active (non-soft-deleted) book references the publisher. - Hard delete: Permanently removes the PublisherEntityv1.0.0PublisherRepresents a publishing house or imprint associated with books in the product catalog.Ownercatalog-experience-teamOpen docs record (no soft delete); soft-deleted books referencing the publisher have their publisher reference set to
NULL. - Cache invalidation: Clears
catalog:publishers:v1and invalidatesbookandbooks:listcache tags. - Vector index queueing: Database triggers enqueue any linked book IDs for asynchronous vector reconciliation by Catalog IngestionServicev1.0.0Catalog IngestionInternal background worker that reads pending Catalog book updates and synchronizes semantic search vectors in Qdrant. SubscribesProcessVectorBatchIntegrationEventOwnercatalog-experience-teamDiagramRepositoryOpen docs.
Error Responses
| Status / Code | Condition | Client Recovery Action |
|---|---|---|
400 Bad Request | Publisher is still linked to one or more active books, or {id} is not a valid UUID | Reassign or delete linked books first, or fix the UUID; do not retry unchanged |
401 Unauthorized | Missing, expired, or invalid Entra ID JWT | Acquire a valid Entra ID access token and retry |
403 Forbidden | Token lacks role business_user or admin, or lacks scopes catalog_read and catalog_write | Request the required Entra ID app role and scopes |
404 Not Found | No publisher exists with the supplied {id} | Verify the UUID; treat as already absent only if your workflow allows it |
429 Too Many Requests | Rate limit quota exceeded (Retry-After header included) | Wait for the Retry-After interval before retrying |
500 Internal Server Error | Unhandled server or database failure (traceId included) | Inspect service logs using traceId |
Related Documentation
- 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 — Service overview, routing, and authorization policies.
- PublisherEntityv1.0.0PublisherRepresents a publishing house or imprint associated with books in the product catalog.Ownercatalog-experience-teamOpen docs — Publisher entity model.
- Create publisherCommandv1.0.0Create publisherCreates a publisher in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs — Create a new publisher record.
- Update publisherCommandv1.0.0Update publisherUpdates an existing publisher in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs — Rename an existing publisher.
Delete publisher schema
Path identifier for the publisher to delete.
Schema does not contain any properties.