Didomi icon

Didomi

Use the Didomi API

Actions75

Widget → Update Component

AI-generated

Overview

This node operation updates a specific component within a widget configuration in the Didomi platform. It is useful for scenarios where you need to modify the settings or properties of a widget component, such as changing layout, behavior, or content dynamically via API. For example, updating a consent banner component to reflect new privacy policies or UI changes.

Use Case Examples

  1. Updating a widget component's configuration by specifying the component ID and providing the updated JSON body with new settings.
  2. Modifying the layout component of a widget to change its appearance or functionality.

Properties

Name Meaning
Component ID The unique identifier of the widget component to update.
Query Parameters Optional parameters to customize the API request, such as filtering or pagination options.
Request Body The JSON body containing the updated data for the widget component.

Output

JSON

  • Status Code - HTTP status code when no content is returned (e.g., 204 No Content).
  • responseData - The JSON response data from the Didomi API after updating the widget component.

Dependencies

  • Didomi API with API Key and API Secret credentials

Troubleshooting

  • Ensure the Component ID is provided; otherwise, the node will throw an error indicating the missing Component ID.
  • Verify that the API Key and API Secret credentials are correctly set and valid to obtain an access token.
  • Check the request body JSON format for correctness to avoid request failures.
  • If the API returns an error, review the error message for details and ensure the endpoint URL and HTTP method are correct.

Discussion