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

# 실험 생성



## OpenAPI

````yaml /openapi/adm.openapi.ko-dev.json post /api/manager/experiments
openapi: 3.1.0
info:
  description: >-
    ## 소개

    Data Management API는 광고 및 추천 시스템이 활용하는 **다양한 데이터를** 종합적으로 관리해, Decision API가
    정확하고 효율적으로 작동할 수 있도록 돕습니다.


    캠페인이나 지면을 신규 등록하고 수정·삭제하는 것은 물론, **로그 및 통계 분석을** 통해 시스템 운영에 필요한 인사이트를 확보합니다.
    이렇게 확보된 데이터와 통계는 Decision API에서 최적화된 광고·콘텐츠를 결정하는 데 활용되며, 전체 광고·추천 시스템의 성능
    향상에 이바지합니다.
  title: 데이터 관리 API
  version: dev
servers: []
security: []
tags:
  - description: 인증 엔드포인트. 모든 역할(admin/operator/advertiser)이 로그인·토큰 갱신·본인 자격 증명 관리에 사용합니다.
    name: 인증
  - description: >-
      광고주 계정 관리. 운영자·관리자가 광고주를 온보딩하고 예산을 관리하며 계정을 비활성화합니다. 광고주는 본인 프로필과 잔액만 조회할
      수 있습니다.
    name: 광고주
  - description: >-
      내부 사용자(운영자/관리자) 계정 관리. 관리자 전용. 운영자 계정 생성, 역할 변경, 활성화 상태 토글, 계정 영구 삭제를
      다룹니다.
    name: 사용자
  - description: >-
      광고 단위 관리. 광고 단위와 관련 리소스를 관리합니다. 광고 단위는 code와 상위 경로에서 파생된 계층 경로 구조로 구성됩니다.
      admin·operator만 접근 가능하며 광고주는 원천 인벤토리에 접근할 수 없습니다.
    name: 광고 단위
  - description: 광고 카탈로그 관리. 광고 카탈로그 CRUD와 공유 링크를 통한 공개 조회를 제공합니다.
    name: 광고 카탈로그
  - description: 수요 파트너(광고 소스) 관리. 광고 단위에 수요를 공급하는 외부 광고 소스를 CRUD합니다.
    name: 수요 파트너
  - description: 게재 할당 관리. 광고 항목을 광고 단위 등 게재 대상에 연결합니다. CRUD, 상태별 카운트, 단건 조회를 제공합니다.
    name: 게재 할당
  - description: 연관 상품 풀(관리자). 추천 파이프라인에서 사용하는 연관 상품 풀의 일괄 저장/삭제 및 조회.
    name: 연관 상품 풀
  - description: 커스텀 타게팅 세그먼트 관리. 커스텀 타게팅 세그먼트의 CRUD 및 일괄 작업.
    name: 커스텀 타게팅 세그먼트
  - description: 감사 로그 조회. 관리 작업에 대한 시스템 감사 로그를 조회합니다.
    name: 감사 로그
  - description: 소재 차단 목록. 소재를 차단/차단 해제해 게재에서 제외합니다.
    name: 차단 소재
  - description: 카탈로그 항목 관리. 상품/데이터 카탈로그 항목을 조회·수정합니다.
    name: 카탈로그
  - description: 광고 소재 관리. 운영자·관리자가 소재를 관리하며 광고주는 본인 소재만 조회합니다. 연결된 LICA가 있으면 삭제가 차단됩니다.
    name: 소재
  - description: 대시보드 집계. 콘솔 대시보드용 요약·인벤토리·광고 항목 지표 롤업.
    name: 대시보드
  - description: 실험 관리. A/B·최적화 실험의 CRUD.
    name: 실험
  - description: 외부 소재 조회. 외부 수요 소스에서 수집된 소재를 읽기 전용으로 조회합니다.
    name: 외부 소재
  - description: 외부 연동 관리. 연동 소스(외부 데이터/서빙 커넥터)를 관리하고 연결을 테스트하며, 민감 설정이 마스킹된 공개 설정을 조회합니다.
    name: 연동
  - description: >-
      소재-광고 항목 연결(LICA). 소재를 광고 항목에 연결하며, 일괄 생성/삭제(최대 100, 부분 실패 허용)와 대시보드 카운트를
      제공합니다.
    name: 소재-광고 항목 연결(LICA)
  - description: 라이선스 정보. 사용 가능한 라이선스 기능과 사용량 지표를 조회합니다.
    name: 라이선스
  - description: >-
      광고 항목 관리. 생성·수정·삭제, 일괄 작업(최대 100, 부분 실패 허용), 상태 전환을 다룹니다. 광고 항목은 상위 주문
      아래에서 예산·목표·일정·타게팅을 정의합니다.
    name: 광고 항목
  - description: 미디어 라이브러리. 소재에 쓰이는 미디어 파일을 조회·업로드·삭제합니다.
    name: 미디어 라이브러리
  - description: 지표 조회 엔드포인트. 광고 단위·소재·광고 항목 등 엔티티의 집계 지표를 조회합니다.
    name: 지표
  - description: >-
      주문 관리. 운영자·관리자가 예산 단위로 광고 항목을 묶는 주문을 생성·관리하며, 광고주는 본인 주문을 조회합니다. 일괄 작업(최대
      100)과 draft 상태 삭제 규칙을 포함합니다.
    name: 주문
  - description: 게재 위치 관리. 게재 위치는 광고 단위를 게재 표면에 매핑합니다. CRUD와 게재 위치에 연결된 광고 단위 교체를 제공합니다.
    name: 게재 위치
  - description: 시스템 설정. 사이트 로고·Public URL·TLS·액세스 토큰 재생성을 포함한 시스템 구성을 조회·수정합니다.
    name: 설정
  - description: 시스템 리소스. 사이트 로고 등 공개 정적 리소스.
    name: 시스템
  - description: 개발자/운영용 제어 엔드포인트. 저수준 ext 변경과 헬스 체크. 일반 API 소비자가 아닌 내부 운영용입니다.
    name: 개발자/운영
  - description: 운영용 게재 할당 제어. 게재 할당 ext/상태 강제 변경(관리자 전용).
    name: 개발자/게재 할당 제어
  - description: 광고 서빙 모니터링(운영). 광고 서빙 현황·광고 단위 모니터링 이력·알림을 조회합니다.
    name: 개발자/모니터링
  - description: 내부 헬스/프로브 엔드포인트.
    name: 내부
  - description: '특정 리소스에 속하지 않는 매니저 공통 유틸리티 엔드포인트(예: 서비스 헬스).'
    name: 매니저(공통)
  - description: 광고 단위, 네이티브 포맷 및 네이티브 스타일 간의 매핑을 관리합니다.
    name: Ad Unit Native Style
  - description: 커스텀 타게팅 키와 활성화 상태를 관리하고 일괄 작업을 수행합니다.
    name: Custom Targeting Key
  - description: 커스텀 타게팅 키에 속한 값과 활성화 상태를 관리하고 일괄 작업을 수행합니다.
    name: Custom Targeting Value
  - description: 네이티브 포맷과 각 포맷을 구성하는 필드를 관리합니다.
    name: Native Format
  - description: 네이티브 스타일에 사용할 수 있는 템플릿을 조회합니다.
    name: Native Style Template
  - description: 네이티브 렌더링 스타일을 관리합니다.
    name: Native Style
paths:
  /api/manager/experiments:
    post:
      tags:
        - 실험
      summary: 실험 생성
      operationId: handle_create_experiment_api_manager_experiments_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExperimentCreate'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExperimentResponse'
          description: 성공 응답
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: 잘못된 요청
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: 권한 없음
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: 유효성 검사 오류
      security:
        - HTTPBearer: []
components:
  schemas:
    ExperimentCreate:
      example:
        buckets:
          - name: control
            ratio: 0.5
          - name: variant
            ratio: 0.5
        end_date: '2026-05-31T23:59:59+09:00'
        name: 배너 소재 A/B 테스트
        start_date: '2026-05-01T00:00:00+09:00'
        status: active
        target_id: <placement_id>
        target_type: placement
      properties:
        buckets:
          items:
            $ref: '#/components/schemas/BucketCreate'
          maxItems: 15
          minItems: 1
          title: Buckets
          type: array
        end_date:
          description: 실험 종료일 (UTC).
          format: date-time
          title: End Date
          type: string
        ext:
          anyOf:
            - {}
            - type: 'null'
          description: 실험 관련 추가 데이터 확장 필드.
          title: Ext
        name:
          description: 실험 이름.
          title: Name
          type: string
        start_date:
          description: 실험 시작일 (UTC).
          format: date-time
          title: Start Date
          type: string
        status:
          $ref: '#/components/schemas/ExperimentStatus'
          default: inactive
          description: 실험 라이프사이클 상태.
        target_id:
          description: 대상 엔티티 식별자.
          format: uuid
          title: Target Id
          type: string
        target_type:
          $ref: '#/components/schemas/ExperimentTargetType'
          description: 대상 엔티티 유형 (광고 단위 또는 게재 위치).
      required:
        - buckets
        - end_date
        - name
        - start_date
        - target_id
        - target_type
      title: ExperimentCreate
      type: object
    ExperimentResponse:
      description: 실험 레코드 응답 스키마.
      properties:
        buckets:
          default: []
          description: 트래픽 분배와 광고 항목 할당을 정의하는 버킷.
          items:
            $ref: '#/components/schemas/ExperimentBucket'
          maxItems: 15
          minItems: 1
          title: Buckets
          type: array
        created_at:
          format: date-time
          title: Created At
          type: string
        end_date:
          description: 실험 종료일 (UTC).
          format: date-time
          title: End Date
          type: string
        ext:
          anyOf:
            - {}
            - type: 'null'
          description: 실험 관련 추가 데이터 확장 필드.
          title: Ext
        id:
          description: 실험 고유 식별자 (UUID v4).
          format: uuid
          title: Id
          type: string
        name:
          description: 실험 이름.
          title: Name
          type: string
        'no':
          anyOf:
            - type: integer
            - type: 'null'
          title: 'No'
        start_date:
          description: 실험 시작일 (UTC).
          format: date-time
          title: Start Date
          type: string
        status:
          $ref: '#/components/schemas/ExperimentStatus'
          default: inactive
          description: 실험 라이프사이클 상태.
        target_id:
          description: 대상 엔티티 식별자.
          format: uuid
          title: Target Id
          type: string
        target_type:
          $ref: '#/components/schemas/ExperimentTargetType'
          description: 대상 엔티티 유형 (광고 단위 또는 게재 위치).
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - id
        - created_at
        - updated_at
        - end_date
        - name
        - start_date
        - target_id
        - target_type
      title: ExperimentResponse
      type: object
    HTTPExceptionResponse:
      properties:
        detail:
          description: 오류에 대한 상세 설명
          title: Detail
          type: string
      required:
        - detail
      title: HTTPExceptionResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    BucketCreate:
      properties:
        gating:
          anyOf:
            - $ref: '#/components/schemas/GatingConfig'
            - type: 'null'
          description: 이 버킷의 선택적 게이팅 설정.
        gating_policy:
          anyOf:
            - type: string
            - type: 'null'
          description: 이 버킷의 선택적 게이팅 정책 식별자.
          title: Gating Policy
        line_item_rotate:
          $ref: '#/components/schemas/LineItemRotateType'
          default: random
          description: 이 버킷의 선택적 광고 항목 로테이션 전략.
        line_items:
          description: 이 버킷에 할당된 광고 항목 목록.
          items:
            $ref: '#/components/schemas/BucketLineItem'
          maxItems: 10
          title: Line Items
          type: array
        name:
          description: 버킷 이름.
          title: Name
          type: string
        proportion:
          description: 이 버킷에 할당된 트래픽 비율.
          minimum: 0
          title: Proportion
          type: integer
      required:
        - line_items
        - name
        - proportion
      title: BucketCreate
      type: object
    ExperimentStatus:
      enum:
        - inactive
        - active
        - completed
      title: ExperimentStatus
      type: string
    ExperimentTargetType:
      enum:
        - ad_unit
        - placement
      title: ExperimentTargetType
      type: string
    ExperimentBucket:
      properties:
        gating:
          anyOf:
            - $ref: '#/components/schemas/GatingConfig'
            - type: 'null'
          description: 이 버킷의 선택적 게이팅 설정.
        gating_policy:
          anyOf:
            - type: string
            - type: 'null'
          description: 이 버킷의 선택적 게이팅 정책 식별자.
          title: Gating Policy
        id:
          description: 실험 내 버킷 식별자.
          maximum: 255
          minimum: 0
          title: Id
          type: integer
        is_deleted:
          default: false
          description: 버킷의 소프트 삭제 여부.
          title: Is Deleted
          type: boolean
        line_item_rotate:
          $ref: '#/components/schemas/LineItemRotateType'
          default: random
          description: 이 버킷의 선택적 광고 항목 로테이션 전략.
        line_items:
          description: 이 버킷에 할당된 광고 항목.
          items:
            $ref: '#/components/schemas/BucketLineItem'
          maxItems: 10
          title: Line Items
          type: array
        name:
          description: 버킷 이름.
          title: Name
          type: string
        proportion:
          description: 이 버킷에 할당된 트래픽 비율.
          minimum: 0
          title: Proportion
          type: integer
      required:
        - id
        - line_items
        - name
        - proportion
      title: ExperimentBucket
      type: object
    ValidationError:
      properties:
        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
    GatingConfig:
      properties:
        share_aware_ctr_gating:
          anyOf:
            - type: boolean
            - type: 'null'
          description: share-aware CTR 게이팅 활성화 여부.
          title: Share Aware Ctr Gating
        share_aware_ctr_gating_config:
          anyOf:
            - $ref: '#/components/schemas/ShareAwareCtrGatingConfig'
            - type: 'null'
          description: share-aware CTR 게이팅 상세 설정.
      title: GatingConfig
      type: object
    LineItemRotateType:
      enum:
        - sequential
        - weighted
        - random
        - score_aware
      title: LineItemRotateType
      type: string
    BucketLineItem:
      properties:
        gating:
          anyOf:
            - $ref: '#/components/schemas/GatingConfig'
            - type: 'null'
          description: 이 광고 항목의 선택적 게이팅 설정.
        lid:
          description: 광고 항목 식별자.
          format: uuid
          title: Lid
          type: string
        weight:
          description: 로테이션에 사용되는 상대 가중치.
          minimum: 0
          title: Weight
          type: integer
      required:
        - lid
        - weight
      title: BucketLineItem
      type: object
    ShareAwareCtrGatingConfig:
      properties:
        alpha:
          anyOf:
            - type: number
            - type: 'null'
          description: 적응 속도를 제어하는 스무딩 계수.
          title: Alpha
        autotune_deadband:
          anyOf:
            - type: number
            - type: 'null'
          title: Autotune Deadband
        autotune_min_min_mult:
          anyOf:
            - type: number
            - type: 'null'
          title: Autotune Min Min Mult
        autotune_step_size:
          anyOf:
            - type: number
            - type: 'null'
          title: Autotune Step Size
        baseline_prior_impressions:
          anyOf:
            - type: number
            - type: 'null'
          description: 기준 CTR 스무딩에 사용하는 사전 노출 가중치.
          title: Baseline Prior Impressions
        cold_start_baseline_ctr:
          anyOf:
            - type: number
            - type: 'null'
          description: 콜드 스타트 기간에 사용하는 기준 CTR.
          title: Cold Start Baseline Ctr
        floor_share:
          anyOf:
            - type: number
            - type: 'null'
          description: 최소 보장 서빙 점유율.
          title: Floor Share
        max_mult:
          anyOf:
            - type: number
            - type: 'null'
          description: 게이팅 배수 상한.
          title: Max Mult
        min_exploration_impressions:
          anyOf:
            - minimum: 0
              type: integer
            - type: 'null'
          description: 게이팅 활성화 전 필요한 최소 노출 수.
          title: Min Exploration Impressions
        min_mult:
          anyOf:
            - type: number
            - type: 'null'
          description: 게이팅 배수 하한.
          title: Min Mult
        share_window_minutes:
          anyOf:
            - minimum: 1
              type: integer
            - type: 'null'
          title: Share Window Minutes
        target_share_multiplier:
          anyOf:
            - type: number
            - type: 'null'
          description: 광고 항목의 목표 게재 비중.
          title: Target Share Multiplier
      title: ShareAwareCtrGatingConfig
      type: object
  securitySchemes:
    HTTPBearer:
      description: 'Bearer 인증. 액세스 토큰을 `Authorization: Bearer <token>` 헤더로 전달합니다.'
      scheme: bearer
      type: http

````