Storefront has been decoupled into micro-frontends with a dedicated commerce app and shared shell.

Read the architecture guide →

Create publisher

Creates a publisher in the Catalog.

Catalog Management
POST/api/v1/publishers

CreatePublisher creates a new publisher record in 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 (POST /catalog/api/v1/publishers) and returns its generated UUIDv7 identifier as a JSON string. Callers use the returned identifier when linking publishers in Create bookCommandv1.0.0Create bookCreates a book listing and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs and Update bookCommandv1.0.0Update bookUpdates an existing book listing, including optional image and catalog relationships.Ownercatalog-experience-teamSchemaDiagramOpen docs.

Overview

PropertyValue
Bounded ContextCatalog
Owner ServiceCatalog 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 / FormatHTTP POST, application/json request and JSON string response
Gateway EndpointPOST /catalog/api/v1/publishers (service path /api/v1/publishers)
Authentication & AuthorizationMicrosoft Entra ID JWT — business_user policy (role business_user or admin and scopes catalog_read, catalog_write)
Idempotency / ConcurrencyNot idempotent; duplicate names violate the unique name constraint, and no x-request-id header is enforced
Rate Limit / CachingGlobal concurrency (100) and fixed-window (30 req/min) limiters plus per-user token bucket; invalidates publisher list cache
Contract Version1.0.0 (ApiVersions.V1)

Request & Response Contract

Request Body (application/json)

Leading and trailing whitespace is trimmed from string properties during deserialization.

NameTypeRequiredConstraintsDescription
namestringYesNon-empty, max 100 characters, uniqueDisplay name of the publisher
Note

CreatePublisher allows up to 100 characters, whereas Update publisherCommandv1.0.0Update publisherUpdates an existing publisher in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs currently enforces a 50-character maximum.

Success Response (200 OK)

Returns 200 OK without a Location header.

NameTypeRequiredConstraintsDescription
Root valuestringYesUUIDv7Generated unique identifier of the created publisher

Behavior & Side Effects

  • Persistence & uniqueness: Inserts a new PublisherEntityv1.0.0PublisherRepresents a publishing house or imprint associated with books in the product catalog.Ownercatalog-experience-teamOpen docs record with a generated UUIDv7 primary key; publisher names are unique-indexed, so submitting a duplicate name fails with 500 Internal Server Error.
  • Cache invalidation: Clears the cached publisher list (catalog:publishers:v1) upon successful creation.
  • Vector indexing: No vector-index refresh is queued on publisher creation; vector updates are triggered only when an existing publisher is updated or deleted.

Error Responses

Status / CodeConditionClient Recovery Action
400 Bad Requestname is missing, empty, whitespace-only, exceeds 100 characters, or payload is malformedFix the request body; do not retry unchanged input
401 UnauthorizedMissing, expired, or invalid Entra ID JWTAcquire a valid Entra ID access token and retry
403 ForbiddenToken lacks role business_user or admin, or lacks scopes catalog_read and catalog_writeRequest the required Entra ID app role and scopes
429 Too Many RequestsRate limit quota exceeded (Retry-After header included)Wait for the Retry-After interval before retrying
500 Internal Server ErrorDuplicate name violating the unique constraint or unhandled server error (traceId included)Check existing publishers for a duplicate name and inspect logs using traceId

Create publisher schema

1 property

Payload for CreatePublisher.

Additional properties: not allowed
namestring
required

Display name of the catalog resource.

Min length: 1