Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Overview

This node integrates with the Commanders Act API, specifically allowing management of "Web Containers Variables" among many other resources. The "Delete Web Internal Variables" operation enables users to delete internal variables within web containers managed by Commanders Act.

Use cases include:

  • Removing obsolete or incorrect internal variables from your web container setup.
  • Automating cleanup tasks in your tag management system.
  • Managing web container variables programmatically as part of a larger workflow.

For example, if you have an internal variable that is no longer needed or was created by mistake, this node can delete it via the API without manual intervention.

Properties

Name Meaning
Internal Variable ID The unique identifier of the internal variable to delete.
Query Parameters Optional parameters to customize the API request. Includes options like end, filter, page, sort, etc. (various filtering and pagination options).
Token An optional token parameter (password type) for additional authentication or API usage.

The main required property for this operation is Internal Variable ID, which specifies which internal variable will be deleted.

Output

The output is a JSON array containing the response from the Commanders Act API after attempting to delete the specified internal variable.

  • If the deletion is successful and the API returns data, the node outputs that data parsed as JSON.
  • If the API returns an empty string or no content, the node outputs a status code message "204 No Content".
  • The output does not include binary data.

Example output JSON might look like:

[
  {
    "status": "success",
    "message": "Internal variable deleted successfully"
  }
]

or simply:

[
  {
    "Status Code": "204 No Content"
  }
]

Dependencies

  • Requires an API key credential for Commanders Act API authentication.
  • The node uses the base URL https://api.commander1.com/v2 for all requests.
  • The user must configure the Commanders Act API credentials in n8n before using this node.

Troubleshooting

  • Missing Internal Variable ID: The node throws an error if the Internal Variable ID is not provided when performing the delete operation. Ensure this ID is set correctly.
  • API Authentication Errors: If the API key credential is missing or invalid, the node will throw an authentication error. Verify your API credentials.
  • HTTP Errors from API: Any HTTP errors returned by the Commanders Act API (e.g., 404 if the variable does not exist, 403 for permission issues) will be surfaced as node errors. Check the variable ID and permissions.
  • Malformed Query Parameters: Incorrectly formatted query parameters may cause API errors. Use valid JSON or strings as expected.
  • Empty Response Handling: The node handles empty responses gracefully by returning a 204 status message, but if unexpected, verify the API endpoint and parameters.

Links and References


This summary focuses on the "Delete Web Internal Variables" operation under the "Web Containers Variable" resource as requested.

Discussion