> ## 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/providers/batch



## OpenAPI

````yaml /generated/openapi.json post /admin/api/providers/batch
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/providers/batch:
    post:
      tags:
        - Management
      summary: POST /admin/api/providers/batch
      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:
              items:
                $ref: '#/components/schemas/Input_BatchItem8'
              type: array
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  anyOf:
                    - $ref: '#/components/schemas/Output_ProviderDto'
                    - type: 'null'
                type: array
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Input_BatchItem8:
      description: |-
        One step of a batch write. Every item of one batch lands in a single
        revision commit: either all of them are durable or none is.
      oneOf:
        - additionalProperties: false
          properties:
            create:
              $ref: '#/components/schemas/Input_ProviderWrite'
          required:
            - create
          type: object
        - additionalProperties: false
          properties:
            update:
              $ref: '#/components/schemas/Input_BatchPatch8'
          required:
            - update
          type: object
        - additionalProperties: false
          properties:
            delete:
              type: string
          required:
            - delete
          type: object
    Output_ProviderDto:
      properties:
        baseUrl:
          type:
            - string
            - 'null'
        channel:
          description: |-
            The channel implementation this provider speaks through; must be one
            of `Gproxy::channels()`.
          type: string
        config:
          description: Channel-specific configuration; always a JSON object.
        connectionProfileId:
          type:
            - string
            - 'null'
        createdAtMs:
          format: int64
          type: integer
        displayName:
          default: null
          type:
            - string
            - 'null'
        enabled:
          type: boolean
        id:
          type: string
        name:
          description: Invocation URL prefix.
          type: string
        proxy:
          default: null
        requestTimeoutMs:
          description: >-
            Upstream response wait in milliseconds; None inherits the global
            setting.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        streamIdleTimeoutMs:
          description: >-
            Maximum stream silence in milliseconds; None inherits the global
            setting.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
      required:
        - id
        - name
        - displayName
        - channel
        - baseUrl
        - connectionProfileId
        - requestTimeoutMs
        - streamIdleTimeoutMs
        - proxy
        - config
        - enabled
        - createdAtMs
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Input_ProviderWrite:
      properties:
        baseUrl:
          default: null
          type:
            - string
            - 'null'
        channel:
          type: string
        config:
          default: null
        connectionProfileId:
          default: null
          type:
            - string
            - 'null'
        displayName:
          default: null
          type:
            - string
            - 'null'
        enabled:
          default: null
          type:
            - boolean
            - 'null'
        id:
          default: null
          description: Supplied ids let a host import its own; blank or absent mints one.
          type:
            - string
            - 'null'
        name:
          type: string
        proxy:
          default: null
        requestTimeoutMs:
          default: null
          description: >-
            Upstream response wait in milliseconds; None inherits the global
            setting.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        streamIdleTimeoutMs:
          default: null
          description: >-
            Maximum stream silence in milliseconds; None inherits the global
            setting.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
      required:
        - name
        - channel
      type: object
    Input_BatchPatch8:
      properties:
        id:
          type: string
        patch:
          $ref: '#/components/schemas/Input_ProviderPatch'
      required:
        - id
        - patch
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Input_ProviderPatch:
      additionalProperties: false
      properties:
        baseUrl:
          default: null
          type:
            - string
            - 'null'
        config:
          default: null
        connectionProfileId:
          default: null
          type:
            - string
            - 'null'
        displayName:
          default: null
          type:
            - string
            - 'null'
        enabled:
          default: null
          type:
            - boolean
            - 'null'
        name:
          default: null
          type:
            - string
            - 'null'
        proxy:
          default: null
        requestTimeoutMs:
          default: null
          description: Omitted preserves the override; null restores global inheritance.
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        streamIdleTimeoutMs:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
      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

- [POST /admin/api/provider-models/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapiprovider-modelsbatch.md)
- [POST /admin/api/provider-rule-sets/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapiprovider-rule-setsbatch.md)
- [POST /admin/api/models/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapimodelsbatch.md)
- [POST /admin/api/permissions/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapipermissionsbatch.md)
- [POST /admin/api/price-rules/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapiprice-rulesbatch.md)


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