update_attribute
Update metadata of an existing Dataverse column—display name, description, required level, max length, min/max values, or precision—while keeping its type and logical name unchanged.
Instructions
Update metadata of an existing column: display name, description, required level, max length, min/max value, precision. Dataverse fixes a column's type and logical name at creation — to change either, add_attribute a new column, migrate the values with update_record, then delete_attribute 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 |