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

# Replace an agent revision's tool-input defaults



## OpenAPI

````yaml /api-reference/openapi.json put /v1/agents/revisions/{revision_id}/tool-input-defaults
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/agents/revisions/{revision_id}/tool-input-defaults:
    put:
      tags:
        - agents
      summary: Replace an agent revision's tool-input defaults
      operationId: setAgentRevisionToolInputDefaults
      parameters:
        - name: revision_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Revision Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolInputDefaultsPutRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolInputDefaultsViewResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ToolInputDefaultsPutRequest:
      properties:
        tools:
          anyOf:
            - additionalProperties:
                additionalProperties:
                  $ref: '#/components/schemas/InputArgConfig'
                type: object
              type: object
            - type: 'null'
          title: Tools
      additionalProperties: false
      type: object
      title: ToolInputDefaultsPutRequest
      description: >-
        Full-replace write body for a revision's keyed tool-input defaults.


        ``tools`` is the whole keyed map ``{tool_key: {field: {value, type}}}``;

        ``null`` or ``{}`` clears all configured defaults for the revision (the

        setter writes SQL NULL). ``extra="forbid"`` rejects stray top-level
        keys; the

        inner ``InputArgConfig`` tolerates the legacy flat ``{field: value}``
        shape.
    ToolInputDefaultsViewResponse:
      properties:
        tools:
          additionalProperties:
            $ref: '#/components/schemas/ToolInputDefaultsEntry'
          type: object
          title: Tools
      type: object
      required:
        - tools
      title: ToolInputDefaultsViewResponse
      description: GET response for an agent/workflow revision's keyed tool-input defaults.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    InputArgConfig:
      properties:
        value:
          title: Value
        type:
          $ref: '#/components/schemas/InputArgType'
          default: default
      additionalProperties: false
      type: object
      required:
        - value
      title: InputArgConfig
      description: >-
        One operator-configured input field: a ``value`` plus its enforcement
        ``type``.


        The wire/stored shape of each entry in the ``input_defaults`` map.
        ``type``

        defaults to ``default`` so a caller can omit it for the common case.
    ToolInputDefaultsEntry:
      properties:
        input_defaults:
          additionalProperties:
            $ref: '#/components/schemas/InputArgConfig'
          type: object
          title: Input Defaults
        resolved:
          type: boolean
          title: Resolved
        default_count:
          type: integer
          title: Default Count
        pinned_count:
          type: integer
          title: Pinned Count
        stale_input_fields:
          items:
            type: string
          type: array
          title: Stale Input Fields
        merged_input_preview:
          additionalProperties:
            $ref: '#/components/schemas/JsonValue'
          type: object
          title: Merged Input Preview
      type: object
      required:
        - input_defaults
        - resolved
        - default_count
        - pinned_count
        - stale_input_fields
        - merged_input_preview
      title: ToolInputDefaultsEntry
      description: >-
        The enriched per-tool-key view of stored keyed operator config (GET
        surface).


        Mirrors the org-level ``ConnectionToolResponse`` computed fields, but
        one

        entry per tool key. ``resolved`` is ``False`` when the key no longer
        maps to

        an enabled org-owned tool — in that case ``stale_input_fields`` lists
        every

        configured field and ``merged_input_preview`` is ``{}`` (the config is

        retained, never auto-deleted; drift is surfaced, not corrected).
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    InputArgType:
      type: string
      enum:
        - default
        - pinned
      title: InputArgType
      description: |-
        How an operator-configured input value is enforced.

        * ``DEFAULT`` — a suggestion the agent may overwrite.
        * ``PINNED`` — a forced value the caller must use and cannot overwrite.
    JsonValue: {}
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````