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

# Replace cost vendor defaults

> Replace the cost vendor defaults as a set; they apply to cost records ingested from now on, and recorded calls keep their cost.



## OpenAPI

````yaml put /v1/ai/billing/costs/vendor-defaults
openapi: 3.1.0
info:
  title: Hyperline API
  version: 0.0.0
servers:
  - url: https://api.hyperline.co
  - url: https://sandbox.api.hyperline.co
security: []
paths:
  /v1/ai/billing/costs/vendor-defaults:
    put:
      tags:
        - AI > Costs
      summary: Replace cost vendor defaults
      description: >-
        Replace the cost vendor defaults as a set; they apply to cost records
        ingested from now on, and recorded calls keep their cost.
      operationId: replaceAgentCostVendorDefaults
      requestBody:
        description: Cost vendor defaults payload
        content:
          application/json:
            schema:
              type: object
              properties:
                vendor_defaults:
                  type: array
                  items:
                    type: object
                    properties:
                      vendor:
                        type: string
                        minLength: 1
                        maxLength: 64
                        description: >-
                          Vendor of the cost items the default applies to,
                          matched case-insensitively.
                        example: hyperline
                      unlisted_items:
                        type: string
                        enum:
                          - free
                        description: >-
                          What happens to this vendor's cost items that have no
                          catalog entry.


                          - free: Costed at zero with `price_status: "unlisted"`
                          instead of unpriced; not missing a cost.
                        example: free
                    required:
                      - vendor
                      - unlisted_items
                  maxItems: 100
                  description: >-
                    Per-vendor behaviour for cost items with no catalog entry; a
                    catalog entry always wins. At most one entry per vendor,
                    sorted by vendor. Never applies to LLM calls.
                  example:
                    - vendor: hyperline
                      unlisted_items: free
              required:
                - vendor_defaults
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  vendor_defaults:
                    type: array
                    items:
                      type: object
                      properties:
                        vendor:
                          type: string
                          description: >-
                            Vendor of the cost items the default applies to,
                            matched case-insensitively.
                          example: hyperline
                        unlisted_items:
                          type: string
                          enum:
                            - free
                          description: >-
                            What happens to this vendor's cost items that have
                            no catalog entry.


                            - free: Costed at zero with `price_status:
                            "unlisted"` instead of unpriced; not missing a cost.
                          example: free
                      required:
                        - vendor
                        - unlisted_items
                    description: >-
                      Per-vendor behaviour for cost items with no catalog entry;
                      a catalog entry always wins. At most one entry per vendor,
                      sorted by vendor. Never applies to LLM calls.
                    example:
                      - vendor: hyperline
                        unlisted_items: free
                required:
                  - vendor_defaults
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.