Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

updatePrivateMetadata Mutation

Updates private metadata of an object. Requires permissions to modify and to read the metadata of the object it’s attached to.

Warning: never store sensitive information, including financial data such as credit card details.

updatePrivateMetadata(id: ID!, input: [MetadataInput!]!): UpdatePrivateMetadata

Returns

UpdatePrivateMetadata

Show return type
type UpdatePrivateMetadata {
  metadataErrors: [MetadataError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [MetadataError!]!
  item: ObjectWithMetadata
}

Arguments

id

id · ID!

ID or token (for Order and Checkout) of an object to update.

input

input · [MetadataInput!]!

Fields required to update the object’s metadata.


Schema: Saleor 3.23.43. Download SDL.

Last updated on April 13, 2026

Was this page helpful?