Write an insight
POST
/api/settings/ai/insights/{kind}/generateWrite 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.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
kind*string
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/api/settings/ai/insights/string/generate"{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "string", "label": "string", "firstDay": "2019-08-24", "lastDay": "2019-08-24", "createdAt": "2019-08-24T14:15:22Z", "startedBy": "string", "requestedBy": null, "model": null, "text": null, "error": null, "figures": null, "discordPostedAt": null, "discordError": null}