MikroTik API icon

MikroTik API

Community Node for MikroTik RouterOS API

Actions67

Hotspot → Reset Counters

AI-generated

Summary

Reset counters of a specified Hotspot user on a MikroTik router to clear their usage statistics.

Inputs

  • Category (required) — Select 'users' as the category to enable the Reset Counters operation for Hotspot users.
  • Target ID / Name (required) — Specify the ID or name of the Hotspot user whose counters you want to reset.
  • Options — Optional control parameters including connection attempts, connection delay between attempts, whether to clean response keys by replacing '-' and '/' with '_', and a custom tag for the command.

Output shape

a single record containing a JSON object with the resource ('hotspot'), operation ('resetCounters'), count (usually 1), and data from the router response indicating the result of the reset operation.

The operation resets counters only for Hotspot users (category must be 'users'). The 'Target ID' is mandatory to identify the specific user. Command retries and response key cleaning behavior are controllable via optional parameters. Errors are handled according to the node's continueOnFail setting.

Examples

Example 1: Reset counters for a Hotspot user

Set Resource to 'Hotspot', Category to 'users', Operation to 'Reset Counters', and provide the Target ID or name of the user.

Links

Discussion