command

Update Product

Command to update an existing product in the catalog.

Command
PATCH/products/{productId}

Overview

UpdateProduct is handled by the Product APIProduct APIServicev1.0.0The public-facing API for the product catalog. Handles commands to create, update and delete products, serves product re...Subscribescreate-product, update-product +2APIsOpenAPIOwnerproduct-platformMapRepoView docs. It applies a partial update to an existing product in the Product DatabaseProduct DatabaseContainerv1.0.0PostgreSQL database that is the system of record for all product data.MapView docs and, on success, publishes a Product UpdatedProduct UpdatedEventv1.0.0Published when an existing product's data has changed. Ownerproduct-platformSchemaMapView docs event describing what changed.

Architecture diagram

Schema

Event-driven architecture documentation: Acme Inc

JSON Schema

7 properties

Command to update an existing product. Only the fields supplied are changed.

productIdstring<uuid>
required

Unique identifier of the product to update

namestring

New display name

Min length: 1
descriptionstring

New long-form description

priceinteger

New price in minor units (e.g. cents)

Minimum: 0
currencystring

ISO 4217 currency code

Match pattern: ^[A-Z]{3}$
categorystring

New category

statusstring

New lifecycle status

Allowed values: DRAFT ACTIVE ARCHIVED