Metadata Categories
A MetadataCategory defines a reusable set of Custom Metadata rules that can be assigned to folders via a folder behavior. Each category specifies named metadata keys with optional allowed-value constraints, and a set of default columns to display in the UI.
If a key's allowed_values array is empty, it is treated as a free-form text field.
If the array is non-empty, the key is constrained to those values in the Web UI.
Resource Schema
Required
| Property | Description |
|---|---|
| name String | Name of the metadata category. |
Optional
| Property | Description |
|---|---|
| default_columns List | Metadata keys that should appear as columns in the UI by default. |
Read Only
| Property | Description |
|---|---|
| id Int64 | Metadata Category ID |
| definitions Map | Map of key names to arrays of allowed values. An empty array means free-form text. |
Resource Import
This Resource supports importing using the following syntax:
Data Source Schema
Required
| Property | Description |
|---|---|
| id Int64 | Metadata Category ID |
Read Only
| Property | Description |
|---|---|
| name String | Name of the metadata category. |
| definitions Map | Map of key names to arrays of allowed values. An empty array means free-form text. |
| default_columns List | Metadata keys that should appear as columns in the UI by default. |