# Update Tool Configuration Configure which tools are enabled for a connector. #### Path Parameters **`connector_id`** string required Connector ID (e.g., `pcon_abc123`). #### Request Body **`enabled`** boolean required Enable/disable all tools globally. **`allowed_tools`** array optional List of allowed tool names. If `null` or omitted, all tools are allowed. ## Returns A success response with the updated tool configuration. Enable all tools ```bash curl -X PATCH "https://api.aitronos.com/v1/personal-connectors/pcon_abc123/tools" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "allowed_tools": null }' ``` ```python import requests import os api_key = os.environ.get("FREDDY_API_KEY") headers = { "X-API-Key": api_key, "Content-Type": "application/json" } response = requests.patch( "https://api.aitronos.com/v1/personal-connectors/pcon_abc123/tools", headers=headers, json={ "enabled": True, "allowed_tools": None } ) result = response.json() print(f"Tool configuration updated: {result['message']}") ``` ```javascript const response = await fetch( 'https://api.aitronos.com/v1/personal-connectors/pcon_abc123/tools', { method: 'PATCH', headers: { 'Authorization': `Bearer ${process.env.FREDDY_API_KEY}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ enabled: true, allowed_tools: null }) } ); const result = await response.json(); console.log(`Tool configuration updated: ${result.message}`); ``` Disable all tools ```bash curl -X PATCH "https://api.aitronos.com/v1/personal-connectors/pcon_abc123/tools" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": false, "allowed_tools": null }' ``` Enable specific tools ```bash curl -X PATCH "https://api.aitronos.com/v1/personal-connectors/pcon_abc123/tools" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": true, "allowed_tools": ["jira_create_issue", "jira_update_issue"] }' ``` **Response:** 200 OK ```json { "success": true, "message": "Tool configuration updated successfully", "connector_id": "pcon_abc123", "tool_configuration": { "enabled": true, "allowed_tools": ["jira_create_issue", "jira_update_issue"] } } ``` 404 Not Found ```json { "success": false, "error": { "code": "RESOURCE_NOT_FOUND", "message": "Connector not found", "system_message": "Connector not found", "type": "client_error", "status": 404, "details": { "connector_id": "pcon_abc123" }, "trace_id": "abc-123-def-456", "timestamp": "2025-11-14T10:30:00Z" } } ``` 422 Validation Error ```json { "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Invalid tool names provided", "system_message": "One or more tool names are not valid for this connector", "type": "validation_error", "status": 422, "details": { "invalid_tools": ["invalid_tool_name"], "valid_tools": ["jira_create_issue", "jira_update_issue", "confluence_create_page"] }, "trace_id": "def-456-ghi-789", "timestamp": "2025-11-14T10:30:00Z" } } ```