> ## 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.

# PATCH /admin/api/rule-sets/{id}



## OpenAPI

````yaml /generated/openapi.json patch /admin/api/rule-sets/{id}
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/rule-sets/{id}:
    patch:
      tags:
        - Management
      summary: PATCH /admin/api/rule-sets/{id}
      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_RuleSetPatch'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_RuleSetDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Input_RuleSetPatch:
      properties:
        description:
          default: null
          type:
            - string
            - 'null'
        enabled:
          default: null
          type:
            - boolean
            - 'null'
        name:
          default: null
          type:
            - string
            - 'null'
      type: object
    Output_RuleSetDto:
      properties:
        createdAtMs:
          format: int64
          type: integer
        description:
          type:
            - string
            - 'null'
        enabled:
          type: boolean
        id:
          type: string
        name:
          type: string
        providerCount:
          description: Number of provider attachments, populated by list/get.
          format: uint64
          minimum: 0
          type:
            - integer
            - 'null'
        updatedAtMs:
          format: int64
          type: integer
      required:
        - id
        - name
        - description
        - enabled
        - createdAtMs
        - updatedAtMs
      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

- [POST /admin/api/rule-sets/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapirule-setsbatch.md)
- [PUT /admin/api/rule-sets/{id}/rules](https://gproxy.leenhawk.com/api-reference/management/put-adminapirule-sets-rules.md)
- [DELETE /admin/api/rule-sets/{id}](https://gproxy.leenhawk.com/api-reference/management/delete-adminapirule-sets.md)
- [PATCH /admin/api/provider-rule-sets/{id}](https://gproxy.leenhawk.com/api-reference/management/patch-adminapiprovider-rule-sets.md)
- [GET /admin/api/rule-sets/{id}](https://gproxy.leenhawk.com/api-reference/management/get-adminapirule-sets-1.md)


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