Didomi icon

Didomi

Use the Didomi API

Actions75

Widget → Delete Widget

AI-generated

Overview

This node operation deletes a specific widget in the Didomi platform using the widget's unique ID. It is useful for scenarios where you need to programmatically remove widgets from your Didomi account, such as cleaning up unused widgets or managing widget lifecycle automatically.

Use Case Examples

  1. Deleting a widget by providing its Widget ID to remove it from the Didomi system.
  2. Automating widget management by integrating widget deletion into workflows.

Properties

Name Meaning
Widget ID The unique identifier of the widget to be deleted. This is required to specify which widget to remove.
Query Parameters Optional parameters to refine or modify the delete request, such as filtering or pagination options. These parameters are passed as key-value pairs.

Output

JSON

  • Status Code - HTTP status code indicating the result of the delete operation, e.g., '204 No Content' for successful deletion.

Dependencies

  • Didomi API with API Key and API Secret credentials for authentication.

Troubleshooting

  • Missing or empty Widget ID will cause an error: 'Widget ID is required'. Ensure the Widget ID is provided before executing the node.
  • Failure to retrieve an access token from Didomi API will result in an error: 'Failed to retrieve access token'. Check API Key and Secret credentials.
  • API call errors will throw a NodeApiError with the message 'Error calling Didomi API' and the underlying error details. Verify network connectivity and API endpoint correctness.

Links

Discussion