Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Overview

This node integrates with the Commanders Act API, specifically allowing management of various resources within the platform. The "Delete Web Tag" operation under the "Web Container" resource enables users to delete a specific web tag by its ID. This is useful for scenarios where obsolete or incorrect tags need to be removed from a web container setup to maintain accurate tracking and data collection.

Practical examples include:

  • Removing deprecated marketing or analytics tags from a website.
  • Cleaning up test or temporary tags that are no longer needed.
  • Managing tag lifecycle programmatically as part of automated workflows.

Properties

Name Meaning
Tag ID The unique identifier of the web tag to delete. This is required to specify which tag to remove.
Query Parameters Optional additional parameters to customize the request. Includes options like date filters, sorting, pagination, and token authentication.

The "Query Parameters" collection supports multiple optional fields such as:

  • end, start: Date/time boundaries for filtering.
  • filter and nested filter options: JSON or string filters for refined queries.
  • granularity, include, page, sort: Control data granularity, included fields, pagination, and sorting.
  • token: An optional password-type field for additional authentication if needed.

Output

The node outputs the response from the Commanders Act API after attempting to delete the specified web tag. The output is a JSON array where each element corresponds to the API response for an input item.

  • If the API returns JSON data, it is parsed and returned as JSON.
  • If the API returns a plain text response, it is returned as text.
  • If there is no content (HTTP 204), the output will indicate "Status Code": "204 No Content".

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Commanders Act API.
  • The node uses the base URL https://api.commander1.com/v2.
  • Proper configuration of the API credentials in n8n is necessary before use.

Troubleshooting

  • Missing Tag ID: The node throws an error if the Tag ID is not provided when performing the delete operation. Ensure the Tag ID parameter is set.
  • API Credential Issues: If the API credentials are missing or invalid, the node will throw an error indicating missing credentials.
  • API Errors: Any errors returned by the Commanders Act API are wrapped and rethrown with descriptive messages. Check the error message and stack trace for details.
  • Invalid Query Parameters: Providing malformed JSON or unsupported query parameters may cause API errors. Validate inputs carefully.
  • Network Issues: Connectivity problems to the Commanders Act API endpoint will result in request failures.

Links and References

Discussion