> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/miscellaneous/llms.txt)
> Source: https://docs.saleor.io/api-reference/miscellaneous/mutations/update-private-metadata

# 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.

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

Details

```graphql
type UpdatePrivateMetadata {
  metadataErrors: [MetadataError!]! @deprecated
  errors: [MetadataError!]!
  item: ObjectWithMetadata
}
```

<a id="arguments"></a>

### Arguments

<a id="id"></a>

#### [`id`](#id) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

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

<a id="input"></a>

#### [`input`](#input) ● [`[MetadataInput!]!`](/api-reference/miscellaneous/inputs/metadata-input.md)

Fields required to update the object's metadata.

<a id="type"></a>

### Type

<a id="updateprivatemetadata"></a>

#### [`UpdatePrivateMetadata`](/api-reference/miscellaneous/objects/update-private-metadata.md)

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.
