Skip to main content

productMediaLinkBulk

Link existing media to products asynchronously. Currently supports images only.

Process Notifications​

Use the response processId to get notifications via processStatusSubscription subscription.

Process Tracking​

Use the processStatus query with the response processId to retrieve process status and progress. The completion percentage of the process can be extracted through the metadata of ProcessStatusPayload.

Business Rules​

  • All referenced products must belong to the current company.
  • All referenced images must belong to the current company.
  • Existing associations are treated as a success (idempotent).
  • The user must have permission for 'media:update_image' to link images to products.

Error Scenarios​

  • **Authentication Error**: User not authenticated or lacks permissions
  • **Validation Error**: Payload exceeds the maximum allowed associations per request.
productMediaLinkBulk(
input: ProductMediaLinkBulkInput!
): AsynchronousActionResponse!

Arguments​

productMediaLinkBulk.input ● ProductMediaLinkBulkInput! non-null input common​

Parameters for ProductMediaLinkBulk

Type​

AsynchronousActionResponse object common​

Asynchronous action response type