update_attribute
Update an existing column's metadata in Dataverse: display name, description, required level, length, min/max values, precision. Type and logical name are immutable; create a new column instead.
Instructions
Update metadata of an existing column (display name, description, required level, max length, min/max value, precision). The column's type and logical name CANNOT be changed by Dataverse — for those, create a new column, migrate data, then delete the old one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Current type of the attribute (required to build the correct metadata discriminator; must match the existing type — type changes are not allowed) | |
| required | No | New required level | |
| max_value | No | New max value (numeric types only) | |
| min_value | No | New min value (numeric types only) | |
| precision | No | New precision (Decimal/Money only) | |
| max_length | No | New max length (String/Memo only) | |
| date_format | No | DateTime only: change UI presentation. See add_attribute for semantics. | |
| description | No | New description | |
| display_name | No | New display name | |
| merge_labels | No | If true, preserve existing localized labels in other languages; if false (default), replace all localized labels with just the new one. | |
| date_behavior | No | DateTime only: change storage semantics. ONE-WAY per Microsoft — you can switch from UserLocal to DateOnly or TimeZoneIndependent once, but cannot switch back or between the non-UserLocal values. Dataverse will return 400 if the behavior is already locked. | |
| language_code | No | Language code for labels (default: 1033) | |
| entity_logical_name | Yes | Logical name of the entity | |
| attribute_logical_name | Yes | Logical name of the column to update |