---
title: CustomDataKeyPairInput - Shop Users API
description: |-
  Hash that defines a relative path for a Custom Data primitive. Contains a 'key' and then, optionally,
  a 'namespace'.
api_version: unstable latest
source_url:
  html: https://shopify.dev/docs/api/shop-users/latest/input-objects/CustomDataKeyPairInput
  md: https://shopify.dev/docs/api/shop-users/latest/input-objects/CustomDataKeyPairInput.md
---

# Custom​Data​Key​Pair​Input

input\_object

Hash that defines a relative path for a Custom Data primitive. Contains a 'key' and then, optionally, a 'namespace'.

## Fields

* key

  [String!](https://shopify.dev/docs/api/shop-users/latest/scalars/String)

  non-null

* namespace

  [String](https://shopify.dev/docs/api/shop-users/latest/scalars/String)

***

## Mutations using this input

* [metafield​Delete.identifier](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete#arguments-identifier)

  ARGUMENT

***

## Input objects using this input

* [Metafield​Set​Input.identifier](https://shopify.dev/docs/api/shop-users/latest/input-objects/MetafieldSetInput#fields-identifier)

  INPUT OBJECT

  Inputs to the metafieldsSet Mutation that define a single field.

***

## Map

### Mutations using this input

* [metafield​Delete.identifier](https://shopify.dev/docs/api/shop-users/latest/mutations/metafieldDelete#arguments-identifier)

### Input objects using this input

* [Metafield​Set​Input.identifier](https://shopify.dev/docs/api/shop-users/latest/input-objects/MetafieldSetInput#fields-identifier)