> ## 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/connection-profiles/batch



## OpenAPI

````yaml /generated/openapi.json post /admin/api/connection-profiles/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/connection-profiles/batch:
    post:
      tags:
        - Management
      summary: POST /admin/api/connection-profiles/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_BatchItem14'
              type: array
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  anyOf:
                    - $ref: '#/components/schemas/Output_ConnectionProfileDto'
                    - 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_BatchItem14:
      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_ConnectionProfileWrite'
          required:
            - create
          type: object
        - additionalProperties: false
          properties:
            update:
              $ref: '#/components/schemas/Input_BatchPatch14'
          required:
            - update
          type: object
        - additionalProperties: false
          properties:
            delete:
              type: string
          required:
            - delete
          type: object
    Output_ConnectionProfileDto:
      additionalProperties: false
      description: >-
        A reusable HTTP transport configuration, independent of outbound proxy
        selection.
      properties:
        backend:
          description: '`reqwest`, `wreq` or `reqwest_native`.'
          type: string
        brotli:
          type: boolean
        connectTimeoutMs:
          format: uint32
          minimum: 0
          type: integer
        createdAtMs:
          format: int64
          type: integer
        deflate:
          type: boolean
        emulation:
          description: >-
            A `gproxy-client` emulation object, or null. wreq applies the full
            identity; other clients apply supported custom fields.
        gzip:
          type: boolean
        id:
          type: string
        name:
          type: string
        poolIdleTimeoutMs:
          format: uint32
          minimum: 0
          type: integer
        poolMaxIdlePerHost:
          format: uint32
          minimum: 0
          type: integer
        redirectMaxHops:
          format: uint32
          minimum: 0
          type: integer
        retry:
          description: '`never` or `default`.'
          type: string
        zstd:
          type: boolean
      required:
        - id
        - name
        - backend
        - emulation
        - gzip
        - brotli
        - deflate
        - zstd
        - redirectMaxHops
        - retry
        - connectTimeoutMs
        - poolIdleTimeoutMs
        - poolMaxIdlePerHost
        - createdAtMs
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Input_ConnectionProfileWrite:
      additionalProperties: false
      properties:
        backend:
          default: null
          type:
            - string
            - 'null'
        brotli:
          default: null
          type:
            - boolean
            - 'null'
        connectTimeoutMs:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        deflate:
          default: null
          type:
            - boolean
            - 'null'
        emulation:
          default: null
        gzip:
          default: null
          type:
            - boolean
            - 'null'
        id:
          default: null
          type:
            - string
            - 'null'
        name:
          type: string
        poolIdleTimeoutMs:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        poolMaxIdlePerHost:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        redirectMaxHops:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        retry:
          default: null
          type:
            - string
            - 'null'
        zstd:
          default: null
          type:
            - boolean
            - 'null'
      required:
        - name
      type: object
    Input_BatchPatch14:
      properties:
        id:
          type: string
        patch:
          $ref: '#/components/schemas/Input_ConnectionProfilePatch'
      required:
        - id
        - patch
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
    Input_ConnectionProfilePatch:
      additionalProperties: false
      properties:
        backend:
          default: null
          type:
            - string
            - 'null'
        brotli:
          default: null
          type:
            - boolean
            - 'null'
        connectTimeoutMs:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        deflate:
          default: null
          type:
            - boolean
            - 'null'
        emulation:
          default: null
        gzip:
          default: null
          type:
            - boolean
            - 'null'
        name:
          default: null
          type:
            - string
            - 'null'
        poolIdleTimeoutMs:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        poolMaxIdlePerHost:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        redirectMaxHops:
          default: null
          format: uint32
          minimum: 0
          type:
            - integer
            - 'null'
        retry:
          default: null
          type:
            - string
            - 'null'
        zstd:
          default: null
          type:
            - boolean
            - '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/connection-profiles](https://gproxy.leenhawk.com/api-reference/management/post-adminapiconnection-profiles.md)
- [POST /admin/api/providers/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapiprovidersbatch.md)
- [POST /admin/api/credentials/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapicredentialsbatch.md)
- [POST /admin/api/api-keys/batch](https://gproxy.leenhawk.com/api-reference/management/post-adminapiapi-keysbatch.md)
- [GET /admin/api/connection-profiles](https://gproxy.leenhawk.com/api-reference/management/get-adminapiconnection-profiles.md)


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