Change how often the knowledge base is refreshed automatically (Admins only)
Refresh automatically: how often Heuristic reads the product's knowledge base again on its own, as an ordinary read started automatically (reads have startedAutomatically true and no startedBy). every is off, daily, weekly or monthly (the default). nextRefreshAt is around when the next refresh starts: one day, week or month after the day the latest read started, at a time of day of the product's own; null when off. A refresh due while a read or a category rebuild runs, or within the hourly read limit, is tried once more an hour later. A change starts no read and leaves the hourly read limit as it was; a next refresh whose time has already passed moves to the product's next time of day, so a change never starts a read at once. Setting the same value again changes nothing, so a retry is safe.
AuthorizationBearer <token>An OAuth access token for the person who allowed your tool: register a client, then the authorization code flow with PKCE (S256). Send it as Authorization: Bearer <token> on every route that needs a signed-in person. Calls with a token are limited per person, across all their apps, to 120 calls a minute and 10,000 a UTC day; calls that start AI runs or knowledge base reads (creating an organization, starting a knowledge base read, rebuilding categories, retrying topics or rechecking) also to 10 a minute and 200 a UTC day. Over a limit a call answers 429 rate_limited with Retry-After and details.retryAfter in seconds, and changes nothing.
productId*stringA Heuristic id: a uuid, in any case (it is read in lower case). Anything else answers 400 validation_error.
uuidapplication/json- body
The new setting.
every*stringHow often: off, daily, weekly or monthly (the default for a new product).
"off""daily""weekly""monthly"The setting now
application/json- response
data*meta*curl -X PUT 'https://staging.heuristic.app/v1/products/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge-base-refresh' \ -H 'Authorization: Bearer <access token>' \ -H 'Content-Type: application/json' \ -d '{ "every": "off"}'{ "data": { "every": "off", "nextRefreshAt": "string" }, "meta": { "property1": null, "property2": null }}