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

# 엔드포인트 설정 수정



## OpenAPI

````yaml openapi-ko.json PATCH /endpoints/{endpoint_id}
openapi: 3.1.0
info:
  title: AirCloud External API
  description: AirCloud 엔드포인트를 프로그래밍 방식으로 관리하는 REST API입니다.
  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: API Key 인증 정보 확인
  - name: Endpoints
    description: '엔드포인트 관리: 조회, 시작, 중지, 스케일링, 설정 변경'
  - name: Replicas
    description: 레플리카 상태 조회
  - name: Logs
    description: 엔드포인트 로그 조회
paths:
  /endpoints/{endpoint_id}:
    patch:
      tags:
        - Endpoints
      summary: 엔드포인트 설정 수정
      description: 비활성 엔드포인트의 런타임 설정을 수정합니다. 최소 하나 이상의 필드를 제공해야 합니다. 활성 상태이면 먼저 중지해야 합니다.
      operationId: patchEndpoint
      parameters:
        - name: endpoint_id
          in: path
          required: true
          description: 엔드포인트 고유 ID
          schema:
            type: string
      requestBody:
        description: 수정할 필드. 모든 필드가 선택사항이지만, 최소 하나는 제공해야 합니다.
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EndpointPatchInput'
      responses:
        '200':
          description: 수정된 엔드포인트 설정
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EndpointPatchResponse'
        '400':
          description: 수정할 필드가 하나도 제공되지 않음
        '409':
          description: 엔드포인트가 활성 상태. 먼저 중지해야 함
components:
  schemas:
    EndpointPatchInput:
      type: object
      properties:
        container_start_command:
          type: string
          nullable: true
          description: 컨테이너 시작 명령어
          example: python app.py
        container_env_vars:
          type: array
          nullable: true
          items:
            type: object
            properties:
              key:
                type: string
                description: 환경변수 키
                example: ENV
              value:
                type: string
                description: 환경변수 값
                example: prod
          description: 컨테이너 환경 변수 목록
        container_port:
          type: integer
          minimum: 1
          maximum: 65535
          nullable: true
          description: 컨테이너 서비스 포트 (1-65535)
          example: 8080
        container_health_check_path:
          type: string
          nullable: true
          description: 헬스체크 경로
          example: /healthz
        container_health_check_timeout:
          type: integer
          minimum: 1
          nullable: true
          description: 컨테이너 헬스체크 타임아웃(초)
          example: 30
        health_check_timeout:
          type: integer
          minimum: 1
          nullable: true
          description: 전체 헬스체크 타임아웃(초). 이 시간 내에 헬스체크가 통과하지 않으면 배포 실패
          example: 300
        container_metric_path:
          type: string
          nullable: true
          description: Prometheus 메트릭 수집 경로
          example: /metrics
    EndpointPatchResponse:
      type: object
      properties:
        endpoint_id:
          type: string
          description: 엔드포인트 고유 ID
        name:
          type: string
          description: 엔드포인트 이름
        is_active:
          type: boolean
          description: 활성 여부 (수정 성공 시 항상 false)
        container_start_command:
          type: string
          nullable: true
          description: 현재 설정된 시작 명령어
        container_env_vars:
          type: array
          nullable: true
          items:
            type: object
          description: 현재 설정된 환경변수
        container_port:
          type: integer
          nullable: true
          description: 현재 설정된 포트
        container_health_check_path:
          type: string
          nullable: true
          description: 현재 설정된 헬스체크 경로
        container_health_check_timeout:
          type: integer
          nullable: true
          description: 현재 설정된 헬스체크 타임아웃
        health_check_timeout:
          type: integer
          nullable: true
          description: 현재 설정된 전체 헬스체크 타임아웃
        container_metric_path:
          type: string
          nullable: true
          description: 현재 설정된 메트릭 경로
        updated_at:
          type: string
          format: date-time
          description: 수정 시간
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API Key를 Bearer 토큰으로 전달합니다. 프로젝트 개요의 API 키 메뉴에서 생성할 수 있습니다.

````