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

# Create

> Create a new Weighted backend




## OpenAPI

````yaml https://raw.githubusercontent.com/ngrok/ngrok-openapi/refs/heads/main/ngrok.yaml post /backends/weighted
openapi: 3.0.0
info:
  title: ngrok OpenAPI
  version: 1.0.0
servers:
  - url: https://api.ngrok.com
security:
  - authentication: []
paths:
  /backends/weighted:
    post:
      tags:
        - WeightedBackends
      summary: Create
      description: |
        Create a new Weighted backend
      operationId: WeightedBackendsCreate
      parameters:
        - $ref: '#/components/parameters/ngrokVersion'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WeightedBackendCreate'
      responses:
        '201':
          description: |
            Create a new Weighted backend
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WeightedBackend'
components:
  parameters:
    ngrokVersion:
      name: ngrok-version
      in: header
      required: true
      schema:
        type: integer
        default: 2
  schemas:
    WeightedBackendCreate:
      type: object
      properties:
        description:
          description: |
            human-readable description of this backend. Optional
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this backend.
            Optional
          type: string
        backends:
          description: |
            the ids of the child backends to their weights [0-10000]
          type: object
    WeightedBackend:
      type: object
      properties:
        id:
          description: |
            unique identifier for this Weighted backend
          type: string
        uri:
          description: |
            URI of the WeightedBackend API resource
          type: string
        created_at:
          description: |
            timestamp when the backend was created, RFC 3339 format
          type: string
        description:
          description: |
            human-readable description of this backend. Optional
          type: string
        metadata:
          description: >
            arbitrary user-defined machine-readable data of this backend.
            Optional
          type: string
        backends:
          description: |
            the ids of the child backends to their weights [0-10000]
          type: object
  securitySchemes:
    authentication:
      type: http
      scheme: bearer

````