Preview

approveProductPublicationRequest is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

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

    Authorization Rules

    This request requires authorization with at least one of the following scopes:

    Scopes

    ROLE_CHANNEL_ADMIN

    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.