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

# connectors.update(id, spec): sets which sides exist and the outbound rate limit



## OpenAPI

````yaml /api-reference/openapi.json put /connectors/{idOrName}
openapi: 3.1.0
info:
  title: paddock API
  version: 1.0.0
  description: >-
    The paddock API. Send an API key, or a session token on its own session, as
    a bearer token.
servers:
  - url: https://api.paddock.build/v1
security:
  - bearer: []
paths:
  /connectors/{idOrName}:
    put:
      summary: >-
        connectors.update(id, spec): sets which sides exist and the outbound
        rate limit
      operationId: updateConnector
      parameters:
        - $ref: '#/components/parameters/ConnectorIdOrName'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectorUpdate'
      responses:
        '200':
          description: The connector
          headers:
            Request-Id:
              $ref: '#/components/headers/RequestId'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Connector'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    ConnectorIdOrName:
      name: idOrName
      in: path
      required: true
      description: The connector's ID, or for connectors.get its name
      schema:
        type: string
  schemas:
    ConnectorUpdate:
      description: >-
        Sets which sides exist and the outbound rate limit; a side omitted or
        null is removed.
      type: object
      additionalProperties: false
      properties:
        inbound:
          oneOf:
            - $ref: '#/components/schemas/InboundCreate'
            - type: 'null'
        outbound:
          oneOf:
            - $ref: '#/components/schemas/OutboundCreate'
            - type: 'null'
    Connector:
      type: object
      required:
        - id
        - name
        - secrets
        - inbound
        - outbound
        - createdAt
        - updatedAt
      properties:
        id:
          type: string
          pattern: ^con_[0-7][0-9a-hjkmnp-tv-z]{25}$
        name:
          description: >-
            [a-z0-9-], 1 to 64 characters, unique in the project, fixed at
            creation.
          type: string
        secrets:
          description: The names of its secrets, default first; never their values.
          type: array
          items:
            type: string
        inbound:
          oneOf:
            - $ref: '#/components/schemas/Inbound'
            - type: 'null'
          description: 'null: no webhook URL answers for it.'
        outbound:
          oneOf:
            - $ref: '#/components/schemas/Outbound'
            - type: 'null'
          description: 'null: every send to its keys is refused.'
        createdAt:
          $ref: '#/components/schemas/Timestamp'
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
    InboundCreate:
      description: 'Present: the connector has an inbound side.'
      type: object
      additionalProperties: false
      properties: {}
    OutboundCreate:
      description: 'Present: the connector has an outbound side.'
      type: object
      additionalProperties: false
      properties:
        rateLimit:
          $ref: '#/components/schemas/RateLimit'
    Inbound:
      type: object
      required:
        - url
        - functionSummary
      properties:
        url:
          description: https://webhook.paddock.build/con_…
          type: string
        functionSummary:
          oneOf:
            - $ref: '#/components/schemas/FunctionSummary'
            - type: 'null'
          description: 'The inbound function; null: every request is answered 503.'
    Outbound:
      type: object
      required:
        - functionSummary
        - rateLimit
        - credentialError
      properties:
        functionSummary:
          oneOf:
            - $ref: '#/components/schemas/FunctionSummary'
            - type: 'null'
          description: 'The deliver function; null: sends are refused until one is set.'
        rateLimit:
          $ref: '#/components/schemas/RateLimit'
        credentialError:
          oneOf:
            - $ref: '#/components/schemas/CredentialError'
            - type: 'null'
          description: >-
            The last permanent error with code auth; cleared by the next
            delivered message.
    Timestamp:
      description: RFC 3339 in UTC with milliseconds.
      type: string
      format: date-time
      pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}Z$
      x-go-type: wire.Timestamp
      x-go-type-import:
        path: github.com/wenfengwang/paddock/internal/wire
    ErrorBody:
      description: The body of every non-2xx response.
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
    RateLimit:
      type: object
      required:
        - perMinute
      properties:
        perMinute:
          type: integer
          minimum: 1
          maximum: 600
    FunctionSummary:
      type: object
      required:
        - runtime
        - preset
        - presetCode
        - version
        - codeSha256
        - updatedAt
      properties:
        runtime:
          $ref: '#/components/schemas/FunctionRuntime'
        preset:
          type:
            - string
            - 'null'
          description: The preset the code was taken from when it was set.
        presetCode:
          description: >-
            The code is still the preset's, byte for byte, so the console offers
            its form.
          type: boolean
        version:
          description: >-
            paddock's version of the side's function, raised by every set, never
            reused.
          type: integer
          minimum: 1
        codeSha256:
          description: SHA-256 of the code, hex.
          type: string
        updatedAt:
          $ref: '#/components/schemas/Timestamp'
    CredentialError:
      type: object
      required:
        - reason
        - at
      properties:
        reason:
          type: string
        at:
          $ref: '#/components/schemas/Timestamp'
    ErrorObject:
      type: object
      required:
        - code
        - message
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
        message:
          type: string
        details:
          type: object
    FunctionRuntime:
      description: AWS Lambda's runtime identifiers.
      type: string
      enum:
        - nodejs24.x
        - python3.14
    ErrorCode:
      type: string
      enum:
        - invalid_request
        - unauthorized
        - forbidden
        - not_found
        - conflict
        - payload_too_large
        - unsupported
        - unavailable
        - internal
  headers:
    RequestId:
      description: The request's ID, for support and logs
      schema:
        type: string
  responses:
    Error:
      description: Every non-2xx response
      headers:
        Request-Id:
          $ref: '#/components/headers/RequestId'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorBody'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key, or a session token on its own session

````

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