AI

Update tool approval preferences

Updates the tool approval preferences for the authenticated user. You can set per-tool approval modes and specify which tools to disable.<br/><br/>These preferences act as the persisted default for all future invocations. They can be overridden on a per-invocation basis using the toolApprovalOverrides field in the invoke endpoint.<br/><br/>To learn more about tool approval, see tool selection.

put/v1/tool-approval-preferences

Request

  • Base URL: https://api.port.io
  • URL: https://api.port.io/v1/tool-approval-preferences
  • Auth: API key in header Authorization

Request body

toolOverridesobject

A map of tool names to their approval mode. Each key is a tool name and each value is one of approval or automatic.

disabledToolsstring[]

A list of tool names to disable. Disabled tools will not be available to the AI during invocations.

Response

Default Response

okboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.