novinzodevelopers
API referenceCore for pluginsCatalog

Publish Product

POST/api/catalog/products/{productId}/publish

Makes a product the calling plugin created live on the storefront, like one the seller made, and tells the storefront its content changed. Only the first call publishes it: once live the product is the seller's, so one they archive afterwards stays archived and later calls change nothing. A product the plugin did not create, another store's, or a deleted one is not found. Requires the store to have granted the plugin products:write.

Path Parameters

productId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/catalog/products/string/publish"
Empty