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, specifically allowing users to update a Web Tag within the "Web Container" resource. It sends an HTTP PATCH request to modify properties of an existing web tag identified by its Tag ID. This operation is useful for managing and updating tags used in web container management, such as adjusting tracking or marketing tags on websites.
Practical scenarios include:
- Updating configuration details of a web tag without recreating it.
- Modifying tag parameters dynamically based on workflow logic.
- Automating tag updates across multiple containers or environments.
Properties
| Name | Meaning |
|---|---|
| Tag ID | The unique identifier of the web tag to update. |
| Query Parameters | Optional additional query parameters to customize the API request. Includes options like: |
| - End, Start (date/time filters) | |
| - Fields[template] | |
| - Filter (JSON object with various filter options such as date ranges, search terms, etc.) | |
| - Granularity | |
| - Include | |
| - Page (pagination info in JSON) | |
| - Sort (sorting criteria in JSON or string) | |
| - Source | |
| - Token (password type, likely for authentication or session token override) | |
| Request Body | JSON object containing the data to update the web tag with. This is the main payload sent in the PATCH request. |
Output
The node outputs the JSON response from the Commanders Act API after attempting to update the web tag. The output structure depends on the API's response but generally includes the updated web tag details or status information.
If the API returns no content (HTTP 204), the node outputs a JSON object indicating "Status Code": "204 No Content".
No binary data output is involved in this operation.
Dependencies
- Requires an active Commanders Act API credential with a valid site ID and API token.
- The node uses the base URL
https://api.commander1.com/v2. - Proper API permissions are necessary to update web tags.
- Network access to the Commanders Act API endpoint must be available.
Troubleshooting
- Missing Credentials: If the API credentials are not set or invalid, the node will throw an error indicating missing credentials.
- Missing Tag ID: The operation requires a Tag ID; if omitted, the node throws an error stating that the Tag ID is required.
- API Errors: Any errors returned by the Commanders Act API (e.g., authorization failures, invalid data) will be wrapped and reported as node API errors with descriptive messages.
- Invalid JSON in Request Body: The request body must be valid JSON; otherwise, parsing errors may occur.
- Network Issues: Connectivity problems to the API endpoint will cause request failures.
To resolve these issues:
- Ensure credentials are correctly configured.
- Provide all required parameters, especially Tag ID.
- Validate JSON syntax in the request body.
- Check network connectivity and API availability.
Links and References
- Commanders Act API Documentation (general reference for API endpoints and usage)
- n8n documentation on Creating Custom Nodes