Preview

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

publishProduct

Publish a product directly. MM-facing (ROLE_CHANNEL_ADMIN); product must be WORKING with status NEW. Returns a ProductPublicationProcess to poll until COMPLETED or ERRORED.

This page contains

    Authorization Rules

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

    Scopes

    ROLE_CHANNEL_ADMIN

    Arguments

    input PublishProductInput! PREVIEW

    PublishProductInput fields

    productId ID!

    Product ID to publish

    Return Fields

    productPublicationProcess ProductPublicationProcess

    Publication process to poll until COMPLETED or ERRORED

    userErrors [PublishProductError!] 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.