WGDashboard Documentation Help

Reset Peer Data Usage

Reset peer's total, sent or receive data

Request

POST /api/resetPeerData/<configName>

Body Parameter

{ "id": "mCP70rKd4iumKptwTgzvAR3g8/D74ZDkwR0EuI10uk4=", "type": "total" }

Parameter

Type

Description

id

string

Public Key of the peer you want to update

type

string

Type of data you want to reset. It can be total, receive or sent

Response

200 - OK

{ "data": null, "message": null, "status": true }

If id is not provided, configName does not exist, or peer does not exist

{ "data": null, "message": "Configuration/Peer does not exist", "status": false }
Last modified: 26 September 2024