Update Widget
update_widgetChanges a widget; send only what changes. A refused call changes nothing. A social widget: its name, layout, settings (the names in get_widget's settings; list_widget_types gives each setting's allowed values), its accounts (all of them, in order: the first, of the widget's service, gives the header) and its campaign (for the "hashtag-campaign" filter; a widget that leaves its campaign needs its accounts in the same call). A review widget: its name, layout, settings and review sources. The site shows a change within a few minutes. embed_code_changed true (for example a new size of a widget with a fixed width and height) on a widget that is already on a site: give the user the new embed_code and the steps of get_embed_code to replace the code on the site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The widget's name in the Widgets list. | |
| layout | No | A new layout of the same kind. A social widget keeps its service and plan. | |
| accounts | No | Social widget: all its account ids from list_accounts, in order, in place of the current ones. | |
| settings | No | The settings to change, as {name: value}, for example {"layoutx": 4, "layouty": 2, "name": "Home page feed"}. | |
| widget_id | Yes | The widget's id (the id in list_widgets). | |
| source_ids | No | Review widget: all its review source ids from list_review_sources, in place of the current ones. | |
| campaign_id | No | Social widget: one of the user's campaigns (list_campaigns), with the setting filter_type "hashtag-campaign". |