approveProductPublicationRequest
Preview (product-request-publication): approve a pending publication request and publish the product.
A marketplace manager (ROLE_CHANNEL_ADMIN) of the product's marketplace approves a pending request.
Approval publishes the product through the Product Service native path and appends the approved event in the
same outbox mutation, so the request and the publication progress together.
Returns publicationRequest (the decision applied), productPublicationProcess (poll until COMPLETED or
ERRORED) and userErrors.
Only REQUESTED requests can be approved. A pending network distribution request returns
ProductNotEligibleForPublishError with path ['input', 'id']. Other ineligibility (no active editions,
retirement in progress, publication already in flight, commerce gate) returns
ProductNotEligibleForPublishError on the same path, with code set for commerce rejections.
The developer receives the approved email and the activity-feed entry.
A permanently failed publication leaves the request PENDING.
This page contains
Arguments
| input ApproveProductPublicationRequestInput! PREVIEW |
ApproveProductPublicationRequestInput fields
| id ID! | Publication request id |
Return Fields
| publicationRequest ProductPublicationRequest | Publication request after the decision |
| productPublicationProcess ProductPublicationProcess | Publication process to poll until COMPLETED or ERRORED |
| userErrors [ApproveProductPublicationRequestError!] PREVIEW |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.