**Version: 202201**

# Metafield Definition Detail

**GET** `/openapi/2022-01/metafield_definition`

Retrieve a metafield definition by its unique identifier.

## Request

**Query Parameters**

- `id` string (required)

  Metafield definition id

## Responses

**200 | 404 | 422**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `id` string

  **Example:** `374034306256875562`
- `key` string

  **Example:** `key2`
- `name` string

  **Example:** `Big`
- `namespace` string

  **Example:** `test`
- `owner_resource` string

  **Example:** `product`
- `type` string

  **Example:** `boolean`
- `description` string

  **Example:** `boolean`
- `create_at` string

  **Example:** `2024-04-28T03:18:59Z`
- `updated_at` string

  **Example:** `2024-04-28T03:18:59Z`

```json
{
  "id": "374034306256875562",
  "key": "key2",
  "name": "Big",
  "namespace": "test",
  "owner_resource": "product",
  "type": "boolean",
  "description": "boolean",
  "create_at": "2024-04-28T03:18:59Z",
  "updated_at": "2024-04-28T03:18:59Z"
}
```

```json
{
  "id": "374034306256875562",
  "key": "key2",
  "name": "Big",
  "namespace": "test",
  "owner_resource": "product",
  "type": "boolean",
  "description": "boolean",
  "create_at": "2024-04-28T03:18:59Z",
  "updated_at": "2024-04-28T03:18:59Z"
}
```

404

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Metafield definition namespace and key exist"
  ]
}
```

```json
{
  "errors": [
    "Metafield definition namespace and key exist"
  ]
}
```

422

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "Id is required"
  ]
}
```

```json
{
  "errors": [
    "Id is required"
  ]
}
```
