Actions108
- Activity Log Actions
- Consent Analysis Actions
- Cookie Scanner Actions
- Data Cleansing Actions
- Destination Actions
- Event Delivery Actions
- Event Enrichment Actions
- Live Report Builder Actions
- Mix Collect Redirect Rule Actions
- Monitoring Actions
- Normalized Datalayer Actions
- Segment Actions
- Source Actions
- Sources Data Quality Actions
- User Actions
- Web Container Actions
- Create Web Constraint
- Create Web Container
- Create Web Perimeter
- Create Web Tag
- Create Web Trigger
- Delete Web Constraint
- Delete Web Container
- Delete Web Perimeter
- Delete Web Tag
- Delete Web Trigger
- Get Web Constraint
- Get Web Perimeter
- Get Web Tag
- Get Web Trigger
- List Web Constraints
- List Web Containers
- List Web Perimeters
- List Web Tags
- List Web Triggers
- Revert Web Tag
- Update Web Constraint
- Update Web Container
- Update Web Perimeter
- Update Web Tag
- Update Web Trigger
- Web Containers Variable Actions
- Create Web Datalayer Variables
- Create Web Datalayer Variables Category
- Create Web Internal Variables
- Delete Web Datalayer Variables
- Delete Web Datalayer Variables Category
- Delete Web Internal Variables
- Get Web Datalayer Variables
- Get Web Internal Variables
- List Web Datalayer Variables
- List Web Internal Variables
- Workspace Actions
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/v2for 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
- Commanders Act API Documentation (general reference for API endpoints and payloads)
- Commanders Act Mix Collect Redirect Rules API (specific documentation for redirect rules)
This summary is based solely on static analysis of the provided source code and property definitions.