Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations on different resources, including dashboards. Specifically, for the Dashboard resource and the Remove Dashboard operation, it allows users to remove a specific dashboard for a user in Matomo. This is useful for managing user dashboards programmatically, such as cleaning up unused dashboards or automating dashboard management tasks.

Use Case Examples

  1. Remove a specific dashboard by providing its ID and user login to automate dashboard cleanup.
  2. Manage dashboards for multiple users by removing dashboards based on certain criteria in a workflow.

Properties

Name Meaning
Query Parameters A collection of optional query parameters to customize the API request, such as dashboard ID, user login, and other filters relevant to the dashboard removal operation.
Request Body A JSON object representing the request body to send with the API call, used for operations that require a payload, including dashboard removal if applicable.

Output

JSON

  • Status Code - Indicates the HTTP status code or response status when no content is returned
  • json - Parsed JSON response from the Matomo API
  • text - Raw text response from the Matomo API if JSON parsing fails

Dependencies

  • Matomo API credentials including domain and authentication token

Troubleshooting

  • Ensure that the Matomo API credentials (domain and auth token) are correctly configured; missing credentials will cause an error.
  • Verify that the dashboard ID and user login provided in query parameters are correct to avoid API errors when removing a dashboard.
  • Check the API endpoint URL and method constructed by the node to ensure it matches the Matomo API documentation for the Remove Dashboard operation.
  • If the API response is empty or not JSON, the node returns a '204 No Content' status; verify if the dashboard was successfully removed or if the dashboard ID was invalid.

Links

Discussion