Create author
Creates an author in the Catalog.
/api/v1/authorsCreateAuthor creates a new author 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/authors) and returns its generated UUIDv7 identifier as a JSON string. Callers use the returned identifier when linking authors to books 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
| 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 POST, application/json request and JSON string response |
| Gateway Endpoint | POST /catalog/api/v1/authors (service path /api/v1/authors) |
| Authentication & Authorization | Microsoft Entra ID JWT — business_user policy (role business_user or admin and scopes catalog_read, catalog_write) |
| Idempotency / Concurrency | Not idempotent; no x-request-id header is required or enforced |
| Rate Limit / Caching | Global concurrency (100) and fixed-window (30 req/min) limiters plus per-user token bucket; invalidates author list cache |
| Contract Version | 1.0.0 (ApiVersions.V1) |
Request & Response Contract
Request Body (application/json)
Leading and trailing whitespace is trimmed from string properties during deserialization.
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
name | string | Yes | Non-empty, max 100 characters | Display name of the author |
Success Response (200 OK)
Returns 200 OK without a Location header.
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
| Root value | string | Yes | UUIDv7 | Generated unique identifier of the created author |
Behavior & Side Effects
- Persistence: Inserts a new AuthorEntityv1.0.0AuthorRepresents a credited author of one or more books in the product catalog, enforcing display-name validity and referentia...Ownercatalog-experience-teamOpen docs record with a generated UUIDv7 primary key; duplicate author names are permitted and create distinct records.
- Cache invalidation: Clears the cached author list (
catalog:authors:v1) upon successful creation. - Vector indexing: No vector-index refresh is queued on author creation; vector updates are triggered only when an existing author is updated or deleted.
Error Responses
| Status / Code | Condition | Client Recovery Action |
|---|---|---|
400 Bad Request | name is missing, empty, whitespace-only, exceeds 100 characters, or payload is malformed | Fix the request body; do not retry unchanged input |
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 |
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 before retrying |
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.
- AuthorEntityv1.0.0AuthorRepresents a credited author of one or more books in the product catalog, enforcing display-name validity and referentia...Ownercatalog-experience-teamOpen docs — Author entity model.
- Update authorCommandv1.0.0Update authorUpdates an existing author in the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs — Rename an existing author.
- Delete authorCommandv1.0.0Delete authorDeletes an existing author from the Catalog.Ownercatalog-experience-teamSchemaDiagramOpen docs — Remove an author with no linked books.
- Create bookCommandv1.0.0Create bookCreates a book listing and returns its generated UUID.Ownercatalog-experience-teamSchemaDiagramOpen docs — Link created authors to a new book listing.
Create author schema
Payload for CreateAuthor.
not allowedDisplay name of the catalog resource.
1