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.
Property
Description
favicon
Icon displayed in the address bar of a browser. You need to add an URL to display a favicon in your hosted widget.
title
Title displayed in the address bar of a browser. You can edit the translations enabled in your widget to overwrite our default content provided.
PATCH https://api.didomi.io/widgets/{id}?organization_id=YOUR_ORG_ID
{
"meta_tags": {
"favicon": "String",
"title": {
"en": "String",
"fr": "String"
}
}
}
Last updated