Skip to main content

updateProductMetadata

Adds or updates metadata using either key and value together, or a non-empty metadata array. Do not mix the two forms. Explicit null arguments, incomplete pairs and duplicate keys (after sanitisation) are rejected. Keys may contain at most 40 characters and values at most 500 characters. The resulting resource may contain at most 50 metadata keys; overwriting existing keys does not consume additional capacity. Unspecified keys are preserved. The entire batch succeeds or fails together.

updateProductMetadata(
productId: ID!
key: ID
value: String
metadata: [MetadataEntryInput!]
): ProductResponsePayload

Arguments​

updateProductMetadata.productId ● ID! non-null scalar​

updateProductMetadata.key ● ID scalar​

updateProductMetadata.value ● String scalar​

updateProductMetadata.metadata ● [MetadataEntryInput!] list input​

Type​

ProductResponsePayload object​

The requested product or a related error.