Matomo icon

Matomo

Use the Matomo API

Actions539

Overview

This node integrates with the Matomo API to perform various operations across multiple resources. Specifically, for the 'Users Manager' resource with the 'Add Capabilities' operation, it allows adding capability flags to a user in Matomo. This is useful for managing user permissions and roles programmatically. For example, you can add specific capabilities to a user to control their access level within Matomo.

Use Case Examples

  1. Add capabilities to a user to grant them additional permissions in Matomo.
  2. Manage user roles by programmatically updating their capabilities.

Properties

Name Meaning
Query Parameters Collection of parameters to customize the API request, including the 'capabilities' string which is an array of capability flags to add or remove.

Output

JSON

  • json - The JSON response from the Matomo API call, which may include the result of adding capabilities to a user or status information.

Dependencies

  • Requires Matomo API credentials including domain URL and authentication token.

Troubleshooting

  • Ensure that the Matomo domain and authentication token are correctly configured in the node credentials; missing these will cause an error.
  • Verify that the 'capabilities' parameter is correctly formatted as a string representing an array of capability flags.
  • Check the API method name constructed in the URL matches the intended operation; incorrect operation names will result in API errors.
  • If the API response is empty or a 204 No Content status, verify that the request parameters are valid and that the user exists in Matomo.

Links

Discussion