> ## Documentation Index
> Fetch the complete documentation index at: https://gproxy.leenhawk.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST /admin/api/credentials/{id}/quota-reset



## OpenAPI

````yaml /generated/openapi.json post /admin/api/credentials/{id}/quota-reset
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/credentials/{id}/quota-reset:
    post:
      tags:
        - Management
      summary: POST /admin/api/credentials/{id}/quota-reset
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_QuotaResetWrite'
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_QuotaResetDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Input_QuotaResetWrite:
      properties:
        grantId:
          type:
            - string
            - 'null'
        program:
          type:
            - string
            - 'null'
        requestId:
          description: Reuse after an uncertain reply to avoid consuming another grant.
          type:
            - string
            - 'null'
      type: object
    Output_QuotaResetDto:
      description: The outcome of redeeming an upstream reset credit.
      properties:
        outcome:
          description: |-
            `reset`, `nothing_to_reset`, `no_credit`, `already_redeemed`,
            `ineligible`, `unavailable` or `cooldown`.
          type: string
        reason:
          type:
            - string
            - 'null'
        windowsReset:
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
      required:
        - reason
        - outcome
        - windowsReset
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /admin/api/credentials/{id}/quota-reset-credits](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-quota-reset-credits.md)
- [POST /admin/api/credentials/{id}/quota-probe](https://gproxy.leenhawk.com/api-reference/management/post-adminapicredentials-quota-probe.md)
- [POST /admin/api/credentials/{id}/quota-diagnostics](https://gproxy.leenhawk.com/api-reference/management/post-adminapicredentials-quota-diagnostics.md)
- [POST /admin/api/credentials/{id}/health-reset](https://gproxy.leenhawk.com/api-reference/management/post-adminapicredentials-health-reset.md)
- [GET /admin/api/credentials/{id}/quota](https://gproxy.leenhawk.com/api-reference/management/get-adminapicredentials-quota.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.