# List metafield owner types

> Retrieve the available metafield owner types.

`GET /rest/api/metafield_owner_types`

Retrieves the collection of MetafieldOwnerType resources.

Returns every metafield owner type, each with the `allowedConstraints` you may attach to a definition with that `ownerType`.

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

## Response

**200** - MetafieldOwnerType collection

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

## Examples

### Example request

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

### Example response

```json
{
  "@context": "/contexts/MetafieldOwnerType",
  "@id": "/rest/api/metafield_owner_types",
  "@type": "hydra:Collection",
  "hydra:totalItems": 2,
  "hydra:member": [
    {
      "@context": "/contexts/MetafieldOwnerType",
      "@id": "/rest/api/metafield_owner_types/products",
      "@type": "https://schema.org/Enumeration",
      "id": "products",
      "description": "The Product metafield owner type.",
      "allowedConstraints": [
        "/rest/api/metafield_definition_constraint_types/category",
        "/rest/api/metafield_definition_constraint_types/channel",
        "/rest/api/metafield_definition_constraint_types/category_channel"
      ]
    },
    {
      "@context": "/contexts/MetafieldOwnerType",
      "@id": "/rest/api/metafield_owner_types/variants",
      "@type": "https://schema.org/Enumeration",
      "id": "variants",
      "description": "The Variant metafield owner type.",
      "allowedConstraints": []
    }
  ]
}
```
