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

# Update system settings (partial).



## OpenAPI

````yaml /openapi/adm.openapi.en-dev.json patch /api/manager/settings
openapi: 3.1.0
info:
  description: >
    ## Introduction

    The Data Management APIs comprehensively oversees the **diverse data** used
    by advertising and recommendation systems, ensuring that the Decision API
    runs accurately and efficiently.


    From registering, updating, and deleting campaigns and placements to **log
    and statistics analysis**, it provides the insights necessary for effective
    system operation.


    The resulting data and metrics are used by the Decision API to **optimize ad
    and content decisions**, ultimately boosting the overall performance of the
    advertising and recommendation system.
  title: Data Management APIs
  version: dev
servers: []
security: []
tags:
  - description: >-
      Authentication endpoints. All roles (admin, operator, advertiser) use
      these to log in, refresh tokens, and manage their own credentials.
    name: Auth
  - description: >-
      Advertiser account management. Operators and admins onboard advertisers,
      manage their budgets, and deactivate accounts. Advertisers can only read
      their own profile and balance — they cannot create, delete, or modify
      another advertiser's account.
    name: Advertisers
  - description: >-
      Internal user (operator / admin) account management. Admin only. Covers
      creating operator accounts, changing roles, toggling activation status,
      and hard-deleting accounts. Operators have no access to this resource.
    name: Users
  - description: >-
      The AdUnit Management API provides comprehensive functionalities for
      managing ad units and related resources. AdUnits are organized in a
      hierarchical path structure derived from their code and parent path. Only
      admin and operator roles have access — advertisers cannot access raw
      inventory. References:
      [Placement](https://docs.aiderx.io/guides/about-a2/en/placement)
    name: AdUnit
  - description: >-
      Ad catalog management. CRUD for ad catalogs plus public shared-view access
      via a share link.
    name: Ad Catalogs
  - description: >-
      Ad source (demand partner) management. CRUD for external ad sources that
      supply demand to ad units.
    name: AdSource
  - description: >-
      Allocation management. An allocation binds a line item to a serving target
      such as an ad unit. Covers CRUD, status counts, and single-allocation
      lookup.
    name: Allocations
  - description: >-
      Associated items pool (admin). Bulk upsert/delete and lookup of
      associated-items pools used by the recommendation pipeline.
    name: AssociatedItemsPool
  - description: >-
      Custom targeting segment management. CRUD and bulk operations for custom
      targeting segments.
    name: Custom Targeting Segment
  - description: Audit log access. Read the system audit log of administrative actions.
    name: Audit Logs
  - description: >-
      Creative block list. List, block, and unblock creatives to exclude them
      from serving.
    name: Blocked Creative
  - description: Catalog item management. List and update catalog (product/data) items.
    name: Catalogs
  - description: >-
      Creative asset management. Operators and admins manage creatives;
      advertisers see only their own. Deletion is blocked while any line-item
      association (LICA) still exists.
    name: Creatives
  - description: >-
      Dashboard aggregates. Summary data, inventory, and line-item metric
      rollups for the console dashboard.
    name: Dashboard
  - description: Experiment management. CRUD for A/B and optimization experiments.
    name: Experiment
  - description: >-
      External creative inspection. Read-only access to creatives ingested from
      external demand sources.
    name: External Creative
  - description: >-
      Third-party integration management. Manage integration sources (external
      data/serving connectors), probe connectivity, and read public
      (sensitive-config-redacted) configs.
    name: Integration
  - description: >-
      Line Item–Creative Associations (LICA). Associates creatives with line
      items, including batch create and delete (max 100, partial failure
      allowed) and dashboard counts.
    name: LICAs
  - description: License information. Read available license features and usage metrics.
    name: License
  - description: >-
      Line item management within an order. Covers create, update, delete, batch
      operations (max 100, partial failure allowed), and status transitions. A
      line item defines budget, goal, schedule, and targeting under its parent
      order.
    name: LineItems
  - description: Media library. List, upload, and delete media files used by creatives.
    name: Media Library
  - description: >-
      Metric query endpoints. Retrieve aggregated metrics for ad units,
      creatives, line items, and related entities.
    name: Metric
  - description: >-
      Advertiser order management. Operators and admins create and manage orders
      that group line items under a single budget; advertisers can read their
      own. Includes batch operations (max 100) and draft-only deletion rules.
    name: Orders
  - description: >-
      Placement management. A placement maps ad units to a serving surface.
      Endpoints cover CRUD and replacing the ad units bound to a placement.
    name: Placements
  - description: >-
      System settings. Read and update system configuration, including site
      logo, public URL, TLS, and access-token regeneration.
    name: Settings
  - description: System resources. Public static resources such as the site logo.
    name: System
  - description: >-
      Operational/developer control endpoints. Low-level ext patches and health
      checks intended for internal operation, not general API consumers.
    name: developer
  - description: >-
      Operational allocation control. Update allocation ext or force-update
      status (admin only).
    name: developer/control/allocations
  - description: >-
      Ad-serving monitoring (operational). Read ad-serving status, ad-unit
      monitoring history, and alerts.
    name: developer/monitoring
  - description: Internal health and probe endpoints.
    name: internal
  - description: >-
      Manager-level utility endpoints (e.g. service health) not tied to a
      specific resource.
    name: manager
  - description: Manage mappings between ad units, native formats, and native styles.
    name: Ad Unit Native Style
  - description: Manage custom targeting keys, including lifecycle and bulk operations.
    name: Custom Targeting Key
  - description: >-
      Manage values belonging to custom targeting keys, including lifecycle and
      bulk operations.
    name: Custom Targeting Value
  - description: Manage native formats and the fields that define each format.
    name: Native Format
  - description: List templates available for native styles.
    name: Native Style Template
  - description: Manage native rendering styles.
    name: Native Style
paths:
  /api/manager/settings:
    patch:
      tags:
        - Settings
      summary: Update system settings (partial).
      operationId: handle_update_setting_api_manager_settings_patch
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SettingUpdate'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SettingRead'
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionResponse'
          description: Forbidden
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    SettingUpdate:
      description: >-
        Request body for PATCH /settings.


        Partial update — only fields present in the request body are
        overwritten.

        `access_token` is intentionally excluded: rotate via POST
        /settings/access-token

        so the token is always a JWT signed by the server.
      example:
        currency: KRW
        language: ko
        public_url: https://ads.example.com
      properties:
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        ext:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Ext
        external_channel_url:
          anyOf:
            - type: string
            - type: 'null'
          title: External Channel Url
        language:
          anyOf:
            - type: string
            - type: 'null'
          title: Language
        public_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Public Url
        site_config:
          anyOf:
            - $ref: '#/components/schemas/SiteConfig'
            - type: 'null'
        tls_domain:
          anyOf:
            - type: string
            - type: 'null'
          title: Tls Domain
        tls_enable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Tls Enable
        yield_optimization:
          anyOf:
            - $ref: '#/components/schemas/YieldOptimization'
            - type: 'null'
      title: SettingUpdate
      type: object
    SettingRead:
      description: Full Setting response. Singleton row, no UUID id.
      properties:
        access_token:
          anyOf:
            - $ref: '#/components/schemas/BearerToken'
            - type: 'null'
          description: Bearer access token for outbound integrations.
        created_at:
          format: date-time
          title: Created At
          type: string
        currency:
          $ref: '#/components/schemas/Currency'
          description: Currency code used for budget management (e.g. "USD", "KRW").
        example_data_info:
          anyOf:
            - {}
            - type: 'null'
          description: Example data information.
          title: Example Data Info
        ext:
          default: {}
          description: Extension bag for setting-specific data.
          title: Ext
        external_channel_url:
          anyOf:
            - type: string
            - type: 'null'
          description: External channel URL used during budget management.
          title: External Channel Url
        id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Id
        language:
          description: Language code for the system (e.g. "en", "ko").
          title: Language
          type: string
        'no':
          description: Internal identifier for the setting row.
          title: 'No'
          type: integer
        public_url:
          anyOf:
            - type: string
            - type: 'null'
          description: System default public URL for event tracker and outbound links.
          title: Public Url
        site_config:
          anyOf:
            - $ref: '#/components/schemas/SiteConfig'
            - type: 'null'
          description: Site configuration values.
        tls_domain:
          anyOf:
            - type: string
            - type: 'null'
          description: TLS domain name.
          title: Tls Domain
        tls_enable:
          description: Whether TLS is enabled.
          title: Tls Enable
          type: boolean
        updated_at:
          format: date-time
          title: Updated At
          type: string
        yield_optimization:
          anyOf:
            - $ref: '#/components/schemas/YieldOptimization'
            - type: 'null'
          description: Yield optimization configuration.
      required:
        - 'no'
        - created_at
        - updated_at
        - currency
        - language
        - tls_enable
      title: SettingRead
      type: object
    HTTPExceptionResponse:
      properties:
        detail:
          description: Detailed explanation for the exception
          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
    SiteConfig:
      properties:
        footer_height:
          anyOf:
            - type: integer
            - type: 'null'
          description: Height of the footer in pixels.
          title: Footer Height
        footer_html:
          anyOf:
            - type: string
            - type: 'null'
          description: HTML content for the footer of the site.
          title: Footer Html
        show_a2_news:
          anyOf:
            - type: boolean
            - type: 'null'
          description: Whether to show the A2 news block.
          title: Show A2 News
        terms_url:
          anyOf:
            - type: string
            - type: 'null'
          description: URL of the terms-and-conditions page.
          title: Terms Url
      title: SiteConfig
      type: object
    YieldOptimization:
      properties:
        ceiling_cpm:
          description: The maximum CPM value for the bidding amount.
          title: Ceiling Cpm
          type: number
        floor_cpm:
          description: The minimum CPM value for the bidding amount.
          title: Floor Cpm
          type: number
        yield_roas_balance:
          description: |-
            Balance between ROAS and eCPM. Closer to 0.0 favors advertiser ROAS;
            closer to 1.0 favors higher eCPM. Range [0.0, 1.0].
          maximum: 1
          minimum: 0
          title: Yield Roas Balance
          type: number
      required:
        - ceiling_cpm
        - floor_cpm
        - yield_roas_balance
      title: YieldOptimization
      type: object
    BearerToken:
      properties:
        access_token:
          description: Access token string.
          title: Access Token
          type: string
        token_type:
          default: Bearer
          description: Token type. Defaults to "Bearer".
          title: Token Type
          type: string
      required:
        - access_token
      title: BearerToken
      type: object
    Currency:
      enum:
        - KRW
        - USD
      title: Currency
      type: string
    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
  securitySchemes:
    HTTPBearer:
      description: >-
        Bearer authentication. Pass the access token in the `Authorization:
        Bearer <token>` header.
      scheme: bearer
      type: http

````