Commanders Act icon

Commanders Act

Use the Commanders Act API

Actions108

Mix Collect Redirect Rule → Create Redirect Rule

AI-generated

Overview

This node interacts with the Commanders Act API to create a new Mix Collect Redirect Rule. It is useful for users who want to programmatically manage redirect rules within the Mix Collect feature of Commanders Act, enabling automated setup of redirect behaviors based on specified criteria.

Use Case Examples

  1. Automatically create redirect rules for marketing campaigns to track user redirections.
  2. Set up redirect rules dynamically based on user input or external triggers in an automation workflow.

Properties

Name Meaning
Query Parameters Optional query parameters to customize the API request, such as filters, pagination, sorting, and other parameters relevant to the redirect rule creation.
Request Body JSON object representing the body of the request to create the redirect rule, containing the details and configuration of the redirect rule to be created.

Output

JSON

  • id - The unique identifier of the created redirect rule.
  • name - The name of the created redirect rule.
  • sourceUrl - The source URL that triggers the redirect.
  • targetUrl - The target URL to which the redirect points.
  • status - The status of the redirect rule (e.g., active, inactive).
  • createdAt - Timestamp when the redirect rule was created.
  • updatedAt - Timestamp when the redirect rule was last updated.

Dependencies

  • Commanders Act API with API token credentials

Troubleshooting

  • Ensure that the API credentials (siteId and tokenAPI) are correctly set and valid, as missing or invalid credentials will cause authentication errors.
  • Verify that the required fields in the request body are correctly formatted JSON and include all necessary properties for creating a redirect rule.
  • Check that the Redirect Rule ID is not required for creation but is required for update, get, or delete operations to avoid errors.
  • If the API returns errors, inspect the error message and stack trace provided by the node for debugging.

Discussion