Settings

Name a widget

To change name of a widget, send a PATCH request on /widgets/{id}.

PATCH https://api.didomi.io/widgets/{id}?organization_id=YOUR_ORG_ID

{
  "name": "YOUR_TITLE"
}

Make a widget Headless

To make a widget headless, send a PATCH request on /widgets/{id}

Note that the widget format has to be embeddable for a Headless widgets to work.

PATCH https://api.didomi.io/widgets/{id}?organization_id=YOUR_ORG_ID

{
  "headless": true
}

Set Meta Tags

To set the meta tags, send a PATCH request on /widgets/{id} and specify the following properties.

PATCH https://api.didomi.io/widgets/{id}?organization_id=YOUR_ORG_ID

{
    "meta_tags": {
        "favicon": "String",
        "title": {
            "en": "String",
            "fr": "String"
        }
    }
}

Last updated