Update assistant settings
Updates the connector. Admin only. Pass `apiKey` to set/replace it, or `clearKey` to remove it. Changing the provider, model, base URL, or key clears the verified flag and switches the assistant off until the connection is tested again.
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X PUT "https://example.com/api/ai/settings" \ -H "Content-Type: application/json" \ -d '{}'Test the connection POST
Tests the saved connection. A local CLI must be installed and signed in; a hosted or custom provider must answer, and list the chosen model if it lists any. A pass marks the connection verified; a failure clears that and switches the assistant off. Admin only.
Begin two-factor setup POST
Starts TOTP setup for your own account and returns the secret and the `otpauth://` URL for the authenticator app. Two-factor stays off until the first code is confirmed via the enable endpoint. Requires the **viewer** role.