# preference\_value

`LayoutComponent` ❌ Theme ✅ Options ✅ Content & Translations

To edit a Preference value, you need to edit the layout-component `preference-value` and send a **PATCH** request on `/widgets/layout-component/{layout-component-id}` and specify the following options in the `options` property.

| Element | Description                                                                                                           | Component options                                                                                                                  |
| ------- | --------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| `icon`  | Name of the preference. If not empty for a language, it overrides root content created in Preferences library.        | [DidomiTextOptions](https://developers.didomi.io/api-and-platform/widgets/privacy-widgets/edit-a-widget/options#didomitextoptions) |
| `label` | Description of the preference. If not empty for a language, it overrides root content created in Preferences library. | [DidomiTextOptions](https://developers.didomi.io/api-and-platform/widgets/privacy-widgets/edit-a-widget/options#didomitextoptions) |

```json
PATCH https://api.didomi.io/widgets/layout-components/{layout_component_id}?organization_id=YOUR_ORG_ID&widget_id=YOUR_WIDGET_ID

{
    "type": "footer",
    "organization_id": "String",
    "options": {
        "icon": {
            "src": ""
            "style": {
                "default": {
                      "padding": "",
                      "margin": "",
                      "width": ""
                }
            }
        },
        "label": {
            "content": {
                "en": "ADD_YOUR_VALUE_CONTENT",
                "fr": "VALEUR_CONTENU"
            }
        }               
    }
}
```
