Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Web Containers Variable → Delete Web Datalayer Variables

AI-generated

Overview

This node interacts with the Commanders Act API to delete a specific web datalayer variable within the Web Containers Variable resource. It is useful for managing and cleaning up datalayer variables in web containers by removing unwanted or obsolete variables. For example, a user can specify the ID of a datalayer variable to delete it from the Commanders Act platform.

Use Case Examples

  1. Deleting a web datalayer variable by providing its ID to keep the web container's datalayer clean and up-to-date.
  2. Automating the removal of deprecated datalayer variables as part of a web container management workflow.

Properties

Name Meaning
Datalayer Variable ID The unique identifier of the web datalayer variable to be deleted.
Query Parameters Optional query parameters to customize the API request, such as filters, pagination, or sorting options.

Output

JSON

  • Status Code - HTTP status code or message indicating the result of the delete operation
  • json - Response JSON object from the API if available

Dependencies

  • Commanders Act API with API token and site ID credentials

Troubleshooting

  • Ensure the Datalayer Variable ID is provided; otherwise, the node throws an error indicating the missing ID.
  • Verify that the API credentials (site ID and token) are correctly set and valid to avoid authentication errors.
  • Check the API endpoint URL and query parameters for correctness to prevent request failures.
  • If the API returns a string response, the node attempts to parse it as JSON; malformed JSON responses may cause parsing errors.

Discussion