---
title: "Reset Admin Usage"
method: POST
path: "/api/admin/{username}/reset"
tags: ["Admin"]
---

# Reset Admin Usage

`POST /api/admin/{username}/reset`

Resets usage of admin.

## Path parameters

- `username` string, required

## Response `200`

Successful Response

- AdminDetails — Complete admin model with all fields for database representation and API responses.
  - `username` string, required
  - `telegram_id` integer, nullable
  - `discord_webhook` string, nullable
  - `sub_domain` string, nullable
  - `profile_title` string, nullable
  - `support_url` string, nullable
  - `notification_enable` UserNotificationEnable
    - `create` boolean
    - `modify` boolean
    - `delete` boolean
    - `status_change` boolean
    - `reset_data_usage` boolean
    - `data_reset_by_next` boolean
    - `subscription_revoked` boolean
  - `id` integer, nullable
  - `is_sudo` boolean, required
  - `total_users` integer
  - `used_traffic` integer
  - `is_disabled` boolean
  - `discord_id` integer, nullable
  - `sub_template` string, nullable
  - `lifetime_used_traffic` integer, nullable
  - `note` string, nullable

## Other responses

- `401` — Unauthorized Error
- `403` — Forbidden Error
- `404` — NotFound Error
- `422` — Validation Error

---

[API](https://skmtc.dev/rain/apis/pasarguardapi.md) · [All operations](https://skmtc.dev/rain/apis/pasarguardapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rain/pasarguardapi/revisions/b3bebca20611/schema)
