Update AI insight settings
/api/settings/ai/insightsSave when each kind of insight is written, and where it goes.
Needs the ManageSettings permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://example.com/api/settings/ai/insights" \ -H "Content-Type: application/json" \ -d '{ "timeZone": null, "model": null, "kinds": null }'{ "timeZone": null, "model": null, "baseModel": null, "aiOn": true, "kinds": [ { "kind": "string", "label": "string", "enabled": true, "every": "string", "hour": 0, "weekday": 0, "discordChannelId": null, "last": null } ]}Get AI insight settings GET
When each kind of insight is written, and where it goes. Needs the `ManageSettings` permission.
Write an insight POST
Write one insight of this kind now, for the stretch ending yesterday. Waits for the model. Answers 200 with the stored insight whether the model wrote something or the call failed -- `text` or `error` says which. Never posted to Discord. 409 when AI is off or the spend limit for insights is reached. Needs the `ManageSettings` permission.