Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Overview

This node integrates with the Commanders Act API to manage Mix Collect Redirect Rules, specifically allowing users to create new redirect rules. It is useful in scenarios where you want to programmatically define URL redirection rules within the Commanders Act platform, for example, to control user navigation or track redirects for marketing and analytics purposes.

Practical examples include:

  • Creating a redirect rule that sends visitors from one URL to another based on specific conditions.
  • Automating the management of redirect rules as part of a larger workflow involving web traffic management or data collection.

Properties

Name Meaning
Query Parameters Optional key-value pairs to add as query parameters to the API request URL.
Request Body JSON object containing the details of the redirect rule to be created. This includes all necessary fields as defined by the Commanders Act API for a redirect rule creation.

The "Query Parameters" property supports multiple optional parameters such as filters, pagination, sorting, date ranges, and tokens, which can be used to customize the API request further.

Output

The node outputs the JSON response returned by the Commanders Act API after creating the redirect rule. The output structure corresponds directly to the API's response schema for a redirect rule creation, typically including details about the newly created redirect rule such as its ID, target URL, conditions, and status.

If the API returns binary data (not typical for this operation), it would be included accordingly, but this operation primarily deals with JSON data.

Dependencies

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

Troubleshooting

  • Missing Credentials Error: If the node throws an error about missing API credentials, ensure that the Commanders Act API key is correctly configured in n8n.
  • Required Parameter Errors: The node validates required parameters like the redirect rule ID when applicable. For creation, ensure the request body JSON is properly formatted and contains all mandatory fields.
  • API Request Failures: Network issues or invalid API keys will cause errors. Verify network connectivity and API key validity.
  • Invalid JSON in Request Body: If the request body JSON is malformed, the API call will fail. Use valid JSON syntax.
  • Unexpected Response Format: If the API returns a string instead of JSON, the node attempts to parse it; if parsing fails, the raw text is returned.

Links and References


This summary is based solely on static analysis of the provided source code and property definitions.

Discussion