---
title: "Add metadata schema to collection"
method: POST
path: "/v1/collections/{address}/metadata-schema"
tags: ["collections"]
---

# Add metadata schema to collection

`POST /v1/collections/{address}/metadata-schema`

Add metadata schema to collection

## Request body

- object
  - `metadata` object[], required — The metadata container
    - `filterable` boolean — Sets the metadata as filterable
    - `name` string, required — Name of the metadata key
    - `type` string — Type of the metadata. Values: "enum", "text", "boolean", "continuous", "discrete" | Default: "text". Src: https://docs.x.immutable.com/docs/asset-metadata#property-type-mapping
  - `contract_address` string — Not required from API user

## Response `201`

Created

- object
  - `result` string

---

[API](https://skmtc.dev/immutable/apis/immutable-x-api.md) · [All operations](https://skmtc.dev/immutable/apis/immutable-x-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/immutable/immutable-x-api/revisions/fb4f99cbbde4/schema)
