update_field
Update an existing REDCap data dictionary field by changing only provided properties, preserving all others.
Instructions
Update properties of an existing field in the data dictionary.
Only the properties you pass will be changed; all other properties are preserved exactly as they are. Exports the full dictionary, patches the target field, and imports it back.
Args: field_name: Variable name of the field to update. field_label: New display label. field_note: New helper text shown below the field. required: Set to True to make the field required, False to make it optional. branching_logic: New show/hide logic expression. choices: New choice definitions for radio/checkbox/select fields, formatted as "1, Label 1 | 2, Label 2". validation: New validation type for text fields. validation_min: New minimum allowed value. validation_max: New maximum allowed value. field_annotation: New action tags and annotations. section_header: New section header above this field.
Returns: Confirmation message, or an error if the field was not found.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| choices | No | ||
| required | No | ||
| field_name | Yes | ||
| field_note | No | ||
| validation | No | ||
| field_label | No | ||
| section_header | No | ||
| validation_max | No | ||
| validation_min | No | ||
| branching_logic | No | ||
| field_annotation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |