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

# Patch Endpoint Settings



## OpenAPI

````yaml openapi.json PATCH /endpoints/{endpoint_id}
openapi: 3.1.0
info:
  title: AirCloud External API
  description: Public REST API for managing AirCloud endpoints programmatically.
  version: 1.0.0
  contact:
    name: support
    url: https://aieev.com
    email: support@aieev.cloud
servers:
  - url: https://external.aieev.cloud:5007/external/api/v1
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Verify API key context.
  - name: Endpoints
    description: 'Manage endpoints: list, start, stop, scale, and patch.'
  - name: Replicas
    description: View live replica status.
  - name: Logs
    description: Access endpoint log files.
paths:
  /endpoints/{endpoint_id}:
    patch:
      tags:
        - Endpoints
      summary: Patch Endpoint Settings
      description: >-
        Update runtime settings for an inactive endpoint. At least one field
        must be provided. Stop the endpoint first if it is active.
      operationId: patchEndpoint
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: Unique endpoint ID.
          schema:
            type: string
      requestBody:
        description: >-
          Fields to update. All fields are optional, but at least one must be
          provided.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointPatchInput'
      responses:
        '200':
          description: Updated endpoint settings.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointPatchResponse'
        '400':
          description: No patch field provided.
        '409':
          description: Endpoint is active. Stop it first.
components:
  schemas:
    EndpointPatchInput:
      type: object
      properties:
        container_start_command:
          type: string
          nullable: true
          description: Container start command.
          example: python app.py
        container_env_vars:
          type: array
          nullable: true
          items:
            type: object
            properties:
              key:
                type: string
                description: Environment variable key.
                example: ENV
              value:
                type: string
                description: Environment variable value.
                example: prod
          description: Container environment variables.
        container_port:
          type: integer
          minimum: 1
          maximum: 65535
          nullable: true
          description: Container service port (1-65535).
          example: 8080
        container_health_check_path:
          type: string
          nullable: true
          description: Health check endpoint path.
          example: /healthz
        container_health_check_timeout:
          type: integer
          minimum: 1
          nullable: true
          description: Container health check timeout in seconds.
          example: 30
        health_check_timeout:
          type: integer
          minimum: 1
          nullable: true
          description: >-
            Overall health check timeout in seconds. Deployment fails if health
            check does not pass within this time.
          example: 300
        container_metric_path:
          type: string
          nullable: true
          description: Prometheus metrics endpoint path.
          example: /metrics
    EndpointPatchResponse:
      type: object
      properties:
        endpoint_id:
          type: string
          description: Unique endpoint ID.
        name:
          type: string
          description: Endpoint name.
        is_active:
          type: boolean
          description: Active status (always false after successful patch).
        container_start_command:
          type: string
          nullable: true
          description: Current start command.
        container_env_vars:
          type: array
          nullable: true
          items:
            type: object
          description: Current environment variables.
        container_port:
          type: integer
          nullable: true
          description: Current port.
        container_health_check_path:
          type: string
          nullable: true
          description: Current health check path.
        container_health_check_timeout:
          type: integer
          nullable: true
          description: Current health check timeout.
        health_check_timeout:
          type: integer
          nullable: true
          description: Current overall health check timeout.
        container_metric_path:
          type: string
          nullable: true
          description: Current metric path.
        updated_at:
          type: string
          format: date-time
          description: Update time.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Pass your API key as a Bearer token. Create API keys in the project
        overview.

````