Skip to main content
POST
/
v1
/
tools
/
{tool_id}
/
set-active-revision
Set the active tool revision
curl --request POST \
  --url https://api-sandbox.featherhq.com/v1/tools/{tool_id}/set-active-revision \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "status": "<string>",
  "created_by": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "default_count": 123,
  "pinned_count": 123,
  "stale_input_fields": [
    "<string>"
  ],
  "merged_input_preview": {},
  "configuration": {
    "url": "<string>",
    "method": "GET",
    "headers": [
      {
        "key": "<string>",
        "value": "<string>",
        "secure": false
      }
    ],
    "query_params": [
      {
        "key": "<string>",
        "value": "<string>",
        "secure": false
      }
    ],
    "body": {},
    "timeout": 30,
    "variables": [
      {
        "name": "<string>",
        "type": "str",
        "description": "<string>",
        "required": false
      }
    ],
    "retry": {
      "max_retries": 0,
      "base_delay_seconds": 1,
      "max_delay_seconds": 30,
      "jitter": true
    }
  },
  "transfer_target": {
    "destination": "<string>",
    "mode": "cold"
  },
  "response_schema": {
    "field_mappings": [
      {
        "path": "<string>",
        "alias": "<string>"
      }
    ]
  },
  "has_secrets": false,
  "input_defaults": {}
}

Authorizations

x-api-key
string
header
required

Path Parameters

tool_id
string<uuid>
required

Body

application/json
revision_id
string<uuid>
required

Response

Successful Response

id
string<uuid>
required
tool_id
string<uuid>
required
name
string
required
description
string | null
required
status
string
required
created_by
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
default_count
integer
required
read-only

How many input variables carry an operator default (ENG-590).

pinned_count
integer
required
read-only

How many input variables are operator-pinned (ENG-590).

stale_input_fields
string[]
required
read-only

Configured variables removed/renamed/retyped by an operator edit.

merged_input_preview
Merged Input Preview · object
required
read-only

The input schema with each operator value injected as default.

configuration
APICallConfiguration · object

Configuration for an API_CALL tool, stored in Tool.configuration.

Supports {{variable}} placeholders in url, headers, and body that are resolved at execution time from the tool's input variables and runtime metadata (via {{metadata.key}}).

transfer_target
TransferTargetView · object

A call_transfer revision's stored target, surfaced on reads.

ToolRevisionResponse.configuration is api_call-typed and parses to None for a transfer config (it has no url), so this field carries the destination/mode back for the transfer-target picker. label / when_to_use come from the parent Tool's name / description.

response_schema
ResponseFieldSelector · object

Defines which fields to extract from a tool response.

has_secrets
boolean
default:false
input_defaults
Input Defaults · object