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

# Update limits that apply to each client individually



## OpenAPI

````yaml swagger.json patch /customer/limits/client
openapi: 3.0.1
info:
  title: VPN-as-a-Service API
  description: API for managing VPN zones and sessions
  version: '1.0'
servers:
  - url: https://api.pingnetwork.io/customer/v2
security:
  - ApiKeyAuth: []
paths:
  /customer/limits/client:
    patch:
      tags:
        - Client Limits
      summary: Update limits that apply to each client individually
      operationId: updateClientLimits
      requestBody:
        description: Client limits update request
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/limits.ClientLimitsRequest'
        required: true
      responses:
        '200':
          description: Client limits updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/limits.ClientLimits'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '429':
          description: Too Many Requests
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors.ErrorResponse'
components:
  schemas:
    limits.ClientLimitsRequest:
      type: object
      properties:
        downloaded_bytes:
          type: integer
          description: Download limit in bytes
          format: int64
          example: 549755813888
        uploaded_bytes:
          type: integer
          description: Upload limit in bytes
          format: int64
          example: 549755813888
        download_speed:
          type: integer
          description: Download speed limit in bytes/s
          format: int64
          example: 52428800
        upload_speed:
          type: integer
          description: Upload speed limit in bytes/s
          format: int64
          example: 52428800
        max_sessions:
          type: integer
          description: Maximum concurrent sessions
          example: 5
        max_reconnections:
          type: integer
          description: Maximum reconnections in a session
          example: 20
    limits.ClientLimits:
      required:
        - created_at
        - id
        - updated_at
      type: object
      properties:
        id:
          type: string
          description: Unique identifier for the client limits
          example: cl_123456789
        created_at:
          type: string
          description: Creation timestamp
          format: date-time
          example: '2025-02-28T14:30:00.000Z'
        updated_at:
          type: string
          description: Last update timestamp
          format: date-time
          example: '2025-02-28T14:30:00.000Z'
        downloaded_bytes:
          type: integer
          description: Download limit in bytes
          format: int64
          example: 549755813888
        uploaded_bytes:
          type: integer
          description: Upload limit in bytes
          format: int64
          example: 549755813888
        download_speed:
          type: integer
          description: Download speed limit in bytes/s
          format: int64
          example: 52428800
        upload_speed:
          type: integer
          description: Upload speed limit in bytes/s
          format: int64
          example: 52428800
        max_sessions:
          type: integer
          description: Maximum concurrent sessions
          example: 5
        max_reconnections:
          type: integer
          description: Maximum reconnections in a session
          example: 20
    errors.ErrorResponse:
      required:
        - error
      type: object
      properties:
        error:
          required:
            - code
            - message
          type: object
          properties:
            code:
              type: string
              description: Unique error code identifier
            message:
              type: string
              description: Human-readable error message
            details:
              type: object
              properties: {}
              description: Additional error context
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: Authorization
      in: header

````