FruxonDocs
IntegrationsTools

Partially updates an existing AI Tool.

Changes only the fields the body carries; an omitted or null field keeps its stored value, so a body with only `description` leaves the request or code, parameters and action type alone. Works for API tools and Python code tools. A sent `descriptor` or `parametersMetadata` replaces the stored one as a whole, under the same rules as the PUT: the descriptor must be the same kind as the stored tool's (400 otherwise), a header sent back as the mask keeps its stored value, and a parameter sent without a `type` is stored as `STRING`. A change to what the tool does moves its `definitionVersion`; a new name or description does not. MCP tools change only by re-import.

PATCH
/v1/tenants/{tenant}/integrations/{integration}/tools/{tool}
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

integration*string

The integration identifier.

tool*string

The unique identifier of the AI Tool.

tenant*string

The tenant identifier

The fields to change.

displayName?string|null

Name shown in the UI. Null leaves it unchanged.

description?string|null

What the tool does, as the model reads it. Null leaves it unchanged; an empty string clears it.

actionType?string

What the tool does to the outside world: READ_ONLY, REVERSIBLE or IRREVERSIBLE. Null leaves it unchanged. Setting it does not record a review; only :review does.

Value in"UNSPECIFIED" | "READ_ONLY" | "REVERSIBLE" | "IRREVERSIBLE"
parametersMetadata?|null

The tool's parameters. When sent, the list replaces the stored one as a whole; a parameter sent without a type is stored as STRING. Null leaves the parameters unchanged.

descriptor?

The tool's request (apiTool) or Python code (codeTool). When sent, it replaces the stored descriptor as a whole and must be the same kind as the stored tool's, or the update returns 400; a header sent back as the mask keeps its stored value. Null leaves the descriptor unchanged.

[key: string]?never

Response Body

curl -X PATCH "https://api.fruxon.com/v1/tenants/string/integrations/string/tools/string" \  -H "Content-Type: application/json" \  -d '{}'
{
  "descriptor": {
    "apiTool": {
      "headers": {},
      "httpMethod": "string",
      "url": "string",
      "queryParameters": {},
      "body": "string",
      "bodyContentType": "string",
      "optionalBodyBlocks": [
        "string"
      ],
      "formParameters": {},
      "resultType": "STRING",
      "resultTransformExpression": "string",
      "pagination": {
        "cursorPath": "string",
        "hasMorePath": "string",
        "offset": null,
        "linkHeader": null
      },
      "successStatusCodes": [
        0
      ],
      "multipart": {
        "parts": []
      },
      "timeoutMs": 0,
      "responseSchema": null
    },
    "predefinedTool": {
      "resultType": "STRING"
    },
    "mcpTool": {
      "serverUrl": "string",
      "mcpToolName": "string",
      "annotations": {
        "readOnlyHint": null,
        "destructiveHint": null,
        "idempotentHint": null,
        "openWorldHint": null
      },
      "resultType": "STRING"
    },
    "codeTool": {
      "code": "string",
      "timeoutSeconds": 0,
      "packages": [
        "string"
      ],
      "resultType": "STRING"
    }
  },
  "isInternal": false,
  "isDeprecated": false,
  "isAsync": false,
  "createdAt": 0,
  "id": "string",
  "modifiedAt": 0,
  "integrationId": "string",
  "displayName": "string",
  "description": "string",
  "toolType": "API",
  "isModifiable": true,
  "actionType": "READ_ONLY",
  "definitionVersion": 0,
  "actionTypeReview": {
    "actionType": "READ_ONLY",
    "definitionVersion": 0,
    "reviewedAt": 0,
    "reviewedBy": "string"
  },
  "actionTypeReviewState": "REVIEWED",
  "messagingRole": "CHANNEL_SEND",
  "resultType": "STRING",
  "parametersMetadata": [
    {
      "name": "string",
      "index": 0,
      "type": "STRING",
      "typeName": "STRING",
      "integerRange": {
        "min": 0,
        "max": 0
      },
      "floatRange": {
        "min": 0,
        "max": 0
      },
      "options": [],
      "asset": {
        "providers": null,
        "contentTypes": null,
        "vectorized": false
      },
      "displayName": "string",
      "description": "string",
      "required": false,
      "secret": false,
      "secretResolvable": false,
      "defaultValue": "string",
      "jsonSchema": null,
      "minLength": 0,
      "maxLength": 0,
      "pattern": "string",
      "validator": "string",
      "uiHint": "CODE",
      "tableHint": {
        "rowKey": "string",
        "readOnlyColumns": [],
        "maxRows": null
      },
      "allowOther": {
        "label": "string",
        "prefill": "string"
      },
      "rules": []
    }
  ],
  "authSettings": {
    "supportsOAuth": false,
    "oAuth": [
      {
        "scopeSize": 0,
        "scopes": [],
        "userScopes": [],
        "allScopes": [],
        "requiresResourceAuth": false,
        "successfulOAuthRedirect": "string"
      }
    ]
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}