Reindex a policy handbook
Queues a handbook to be indexed again for AI search. Use it after editing the policy text, or to retry a handbook whose indexStatus is Failed.
Authorization
AuthorizationstringrequiredPath parameters
policyHandbookIdstringrequiredThe policy handbook to act on. A Snowflake id sent as a decimal string.
Response
200 · The handbook, with indexing queued again.
idstringThe handbook. A Snowflake id sent as a decimal string.
levelenum<string>Which rung of the hierarchy the handbook applies at. PascalCase, not camelCase.
levelIdstringThe portfolio, property, unit or lease the handbook is attached to. Absent when level is Global.
titlestringName of the handbook.
descriptionstringWhat the handbook covers. Absent when none was set.
scriptstringThe policy text itself, in plain text. This is what the AI is given.
indexStatusenum<string>How far the handbook has got through being indexed for AI search. PascalCase, not camelCase.
indexErrorstringWhy indexing failed. Present when indexStatus is Failed.
indexedAtstring · date-timeWhen the handbook was last indexed, in the company's timezone. Absent when it never has been.
enabledbooleanWhether the handbook is applied to live chats.
createdstring · date-timeWhen the handbook was created, in the company's timezone.
updatedstring · date-timeWhen it was last changed, in the company's timezone.
401 · The access token is missing, expired, or not valid for this company.
404 · No policy handbook with that id exists in the caller's company.
This takes no request body. Indexing runs in the background: poll the handbook until indexStatus becomes Indexed, or watch for Failed and read indexError.
Most enums in this API come back camelCased. These two do not: they are turned into strings by hand, so you get Property and Indexed, not property and indexed. The level query filter is read the same way and is case-sensitive.