productUpdateAttributes
Create and process an asynchronous operation that updates a product's attributes.
Process Notifications
Use the response processId to get notifications via processStatusSubscription subscription.
Use the provided productId to listen to product notification sent via 'productUpdates' subscription when
product attributes are updated.
Process Tracking
Use the processStatus query with the response processId to retrieve process status.
Example:
{
status: 'COMPLETED',
statusMessage: 'Product attributes added successfully'
}
Authentication Requirements
Requires authentication and 'products:update_attribute' permission.
Validation Rules
- Product must exist
- Product attribute must exist
- At least one product attribute is required.
Possible Errors
- **Authentication Error**: User not authenticated or lacks permissions
- **Validation Error**: Any validation rule is violated
productUpdateAttributes(
input: UpdateProductAttributesInput!
): AsynchronousActionResponse!
Arguments
productUpdateAttributes.input ● UpdateProductAttributesInput! non-null input
Parameters for UpdateProductAttributes
Type
AsynchronousActionResponse object
Asynchronous action response type