# footer

`LayoutComponent` ❌ Theme ✅ Options ✅ Content & Translations

To edit the Footer, you need to edit the layout-component `footer` 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                                                                                                                    |
| ------- | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| `text`  | Text element in the footer. | [DidomiTextOptions](https://developers.didomi.io/api-and-platform/widgets/privacy-widgets/edit-a-widget/options#didomitextoptions)   |
| `icon`  | Icon element in the footer. | [DidomiImageOptions](https://developers.didomi.io/api-and-platform/widgets/privacy-widgets/edit-a-widget/options#didomiimageoptions) |

```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": {
        "text": {
            "style": {
                "default": {
                    "color": "",
                    "fontSize": "",
                    "lineHeight": "",
                    "fontWeight": ""
                }
            },        
            "content": {
                "en": "YOUR_TEXT",
                "fr": "VOTRE_TEXTE"
            }
        },
        "icon": {
            "src": "YOUR_URL",
            "style": {
                "default": {
                      "padding": "",
                      "margin": "",
                      "width": ""
                }
            }
        }
    }
}
```
