---
title: "Update metadata schema by name"
method: PATCH
path: "/v1/collections/{address}/metadata-schema/{name}"
tags: ["collections"]
---

# Update metadata schema by name

`PATCH /v1/collections/{address}/metadata-schema/{name}`

Update metadata schema by name

## Request body

- object
  - `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

## Response `200`

OK

- 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)
