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

# POST /admin/api/default-model-catalog/apply-prices



## OpenAPI

````yaml /generated/openapi.json post /admin/api/default-model-catalog/apply-prices
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/default-model-catalog/apply-prices:
    post:
      tags:
        - Management
      summary: POST /admin/api/default-model-catalog/apply-prices
      parameters:
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Input_ApplyDefaultPricesRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_ApplyDefaultPricesReportDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Input_ApplyDefaultPricesRequest:
      properties:
        modelIds:
          description: Catalog `model_id`s, or names a catalog glob covers.
          items:
            type: string
          type: array
        overwrite:
          default: false
          description: >-
            Whether a rule that already covers the same pattern in the same
            scope

            is replaced. False leaves an operator's edited price alone, which is

            what makes re-applying the catalog safe.
          type: boolean
        providerId:
          default: null
          description: >-
            None writes global rules, which price the model at every provider. A

            provider id writes rules that only that provider's traffic matches,
            and

            those are written under the literal model id rather than the
            catalog's

            glob.
          type:
            - string
            - 'null'
      required:
        - modelIds
      type: object
    Output_ApplyDefaultPricesReportDto:
      properties:
        created:
          format: uint64
          minimum: 0
          type: integer
        skipped:
          description: 'Rules already present that `overwrite: false` left alone.'
          format: uint64
          minimum: 0
          type: integer
        unmatched:
          description: Names no catalog entry covers.
          format: uint64
          minimum: 0
          type: integer
        updated:
          description: Rules `overwrite` replaced, rates and tiers included.
          format: uint64
          minimum: 0
          type: integer
      required:
        - created
        - updated
        - skipped
        - unmatched
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /admin/api/default-model-catalog](https://gproxy.leenhawk.com/api-reference/management/get-adminapidefault-model-catalog.md)
- [POST /admin/api/models/discover/apply](https://gproxy.leenhawk.com/api-reference/management/post-adminapimodelsdiscoverapply.md)
- [POST /admin/api/models/discover](https://gproxy.leenhawk.com/api-reference/management/post-adminapimodelsdiscover.md)
- [POST /admin/api/models](https://gproxy.leenhawk.com/api-reference/management/post-adminapimodels.md)
- [POST /admin/api/credentials/{id}/models/discover](https://gproxy.leenhawk.com/api-reference/management/post-adminapicredentials-modelsdiscover.md)


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