> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-locadex-parallel-t9n-main-cs60c8p4o6ik99tylxgp3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 맞춤형 런타임 Apply

> 맞춤형 런타임 설정을 생성하거나 교체합니다.



## OpenAPI

````yaml ko/weave/reference/service-api/openapi.json PUT /v2/{entity}/{project}/runtimes/{runtime_name}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /v2/{entity}/{project}/runtimes/{runtime_name}:
    put:
      tags:
        - Custom Runtimes
      summary: 맞춤형 런타임 적용
      description: 맞춤형 런타임 설정을 생성하거나 교체합니다.
      operationId: custom_runtime_apply_v2__entity___project__runtimes__runtime_name__put
      parameters:
        - in: path
          name: entity
          required: true
          schema:
            title: Entity
            type: string
        - in: path
          name: project
          required: true
          schema:
            title: Project
            type: string
        - description: 생성하거나 교체할 맞춤형 런타임의 고정 이름
          in: path
          name: runtime_name
          required: true
          schema:
            description: 생성하거나 교체할 맞춤형 런타임의 고정 이름
            maxLength: 128
            minLength: 1
            pattern: ^[^\s:]*(?::[^\s:]+)*:?$
            title: Runtime Name
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CustomRuntimeApplyBody'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CustomRuntimeApplyRes'
          description: 성공적인 응답
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: 검증 오류
components:
  schemas:
    CustomRuntimeApplyBody:
      properties:
        api_key_secret:
          anyOf:
            - type: string
            - type: 'null'
          description: 엔드포인트 API 키로 사용되는 팀 시크릿 이름이며, 시크릿 값 자체는 아닙니다
          title: Api Key Secret
        base_url:
          description: 공개 OpenAI 호환 엔드포인트 기본 URL
          title: Base Url
          type: string
        headers:
          additionalProperties:
            type: string
          description: 엔드포인트로 그대로 전달되는 헤더
          title: Headers
          type: object
        runtime_ids:
          description: 엔드포인트에서 노출할 전체 ID 목록
          items:
            $ref: '#/components/schemas/CustomRuntimeID'
          title: Runtime Ids
          type: array
      required:
        - base_url
        - runtime_ids
      title: CustomRuntimeApplyBody
      type: object
    CustomRuntimeApplyRes:
      properties:
        api_key_secret:
          anyOf:
            - type: string
            - type: 'null'
          title: Api Key Secret
        base_url:
          title: Base Url
          type: string
        headers:
          additionalProperties:
            type: string
          title: Headers
          type: object
        name:
          description: 안정적인 맞춤형 런타임 이름
          title: Name
          type: string
        runtime_ids:
          items:
            $ref: '#/components/schemas/CustomRuntimeIDRes'
          title: Runtime Ids
          type: array
      required:
        - name
        - base_url
        - api_key_secret
        - headers
        - runtime_ids
      title: CustomRuntimeApplyRes
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    CustomRuntimeID:
      properties:
        id:
          description: OpenAI 호환 요청의 model 필드에 전송되는 값
          minLength: 1
          pattern: ^\S+$
          title: Id
          type: string
        max_tokens:
          default: 4096
          description: 이 런타임 ID에서 지원하는 최대 토큰 수
          exclusiveMinimum: 0
          title: Max Tokens
          type: integer
      required:
        - id
      title: CustomRuntimeID
      type: object
    CustomRuntimeIDRes:
      properties:
        id:
          description: OpenAI 호환 요청의 model 필드에 전송되는 값
          minLength: 1
          pattern: ^\S+$
          title: Id
          type: string
        max_tokens:
          default: 4096
          description: 이 런타임 ID에서 지원하는 최대 토큰 수
          exclusiveMinimum: 0
          title: Max Tokens
          type: integer
        playground_id:
          title: Playground Id
          type: string
      required:
        - id
        - playground_id
      title: CustomRuntimeIDRes
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````