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

# Save pricing tier and peril selection



## OpenAPI

````yaml /openapi.json put /pricing/{policyId}/selection
openapi: 3.0.0
info:
  title: Korint Documentation
  description: Korint API Documentation
  version: 1.0.0
  contact: {}
servers: []
security:
  - bearerAuth: []
tags: []
paths:
  /pricing/{policyId}/selection:
    put:
      tags:
        - pricing
      summary: Save pricing tier and peril selection
      operationId: PricingController_savePricingSelection
      parameters:
        - name: policyId
          required: true
          in: path
          description: Policy ID
          schema:
            type: string
        - name: branchId
          required: false
          in: query
          description: Branch ID (optional, defaults to latest)
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SavePricingSelectionInputBody'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SavePricingSelectionOutput'
        '404':
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/PolicyNotFoundErrorDto'
              examples:
                POLICY_NOT_FOUND:
                  $ref: '#/components/schemas/PolicyNotFoundErrorDto'
          description: ''
components:
  schemas:
    SavePricingSelectionInputBody:
      type: object
      properties:
        tierId:
          type: string
          description: Selected tier ID
        policyCustomFields:
          description: Policy-level custom fields to save
          type: array
          items:
            $ref: '#/components/schemas/CustomFieldDto'
      required:
        - tierId
    SavePricingSelectionOutput:
      type: object
      properties:
        saved:
          type: boolean
          description: Whether the selection was saved successfully
      required:
        - saved
    PolicyNotFoundErrorDto:
      type: object
      properties:
        code:
          type: string
          enum:
            - POLICY_NOT_FOUND
        message:
          type: string
          example: Policy {policyId} ({branchId}) not found
        details:
          $ref: '#/components/schemas/PolicyNotFoundDetailsDto'
      required:
        - code
        - message
        - details
    CustomFieldDto:
      type: object
      properties:
        key:
          type: string
        value:
          oneOf:
            - type: string
            - type: number
            - type: boolean
      required:
        - key
        - value
    PolicyNotFoundDetailsDto:
      type: object
      properties:
        policyId:
          type: string
        branchId:
          type: string
        whenAt:
          type: string
        simulatedAt:
          type: string
      required:
        - policyId

````