# List metafield definition validations

> Retrieve a paginated list of metafield definition validations.

`GET /rest/api/metafield_definition_validations`

Retrieves the collection of MetafieldDefinitionValidation resources.

Returns a paginated collection of metafield definition validations in the current organization.

## Headers

| Name                         | Type     | Required | Description                                                                                                                                      |
| ---------------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `X-Flowkiwi-Organization-Id` | `string` | Yes      | The organization the request acts as. Determines the identity, permissions and ownership applied when reading or modifying data on the instance. |

## Query parameters

| Name           | Type      | Required | Description                  |
| -------------- | --------- | -------- | ---------------------------- |
| `page`         | `integer` | -        | The collection page number   |
| `itemsPerPage` | `integer` | -        | The number of items per page |

## Response

**200** - MetafieldDefinitionValidation collection

| Property           | Type                              | Required | Description |
| ------------------ | --------------------------------- | -------- | ----------- |
| `hydra:totalItems` | `integer`                         | -        |             |
| `hydra:search`     | `object`                          | -        |             |
| `hydra:view`       | `object`                          | -        |             |
| `hydra:member`     | `MetafieldDefinitionValidation[]` | Yes      |             |

## Errors

**403** - Access denied. The caller is missing one or more identity permissions required for this operation.

| Property             | Type       | Required | Description                                                                                                                                |
| -------------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `@context`           | `object`   | -        |                                                                                                                                            |
| `@id`                | `string`   | Yes      |                                                                                                                                            |
| `@type`              | `string`   | Yes      |                                                                                                                                            |
| `type`               | `string`   | -        |                                                                                                                                            |
| `title`              | `string`   | -        |                                                                                                                                            |
| `status`             | `integer`  | -        |                                                                                                                                            |
| `detail`             | `string`   | -        |                                                                                                                                            |
| `missingPermissions` | `string[]` | -        | Identity permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied identity:* permission. |

## Examples

### Example request

```bash
curl -X GET 'https://<tenant>.product-management.flowkiwi.net/rest/api/metafield_definition_validations' \
  -H 'Authorization: Bearer {token}' \
  -H 'X-Flowkiwi-Organization-Id: <org_id>' \
  -H 'Accept: application/ld+json'
```

### Example response

```json
{
  "@context": "/contexts/MetafieldDefinitionValidation",
  "@id": "/rest/api/metafield_definition_validations",
  "@type": "hydra:Collection",
  "hydra:totalItems": 1,
  "hydra:member": [
    {
      "@context": "/contexts/MetafieldDefinitionValidation",
      "@id": "/rest/api/metafield_definition_validations/019afe01-1a2b-7c3d-8e4f-0a1b2c3d4e5f",
      "@type": "MetafieldDefinitionValidation",
      "id": "019afe01-1a2b-7c3d-8e4f-0a1b2c3d4e5f",
      "metafieldDefinition": "/rest/api/metafield_definitions/019afb01-1a2b-7c3d-8e4f-0a1b2c3d4e5f",
      "name": "/rest/api/metafield_definition_validation_types/max_length",
      "value": "500"
    }
  ]
}
```
