Upsert Support Knowledge
Create or update an AI support knowledge base entry (a Q&A pair or a document) used by the customer support chat. Pass an id to update an existing entry, or omit it to create a new one. Content is automatically re-indexed for retrieval. Include only fields you want to change; omit the rest. Empty strings, null, and 0 are ignored so they cannot wipe existing values. App connections need the booking:write or inventory:write scope.
curl -X POST "https://dash.lockii.app/api/v1/support-knowledge" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"kind": "qa",
"title": "string",
"content": "string"
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Body
idstringExisting knowledge entry ID to update. Omit to create a new entry.
kindenum<string>required'qa' for a question/answer pair, 'document' for a longer document or policy.
One of:qadocumenttitlestringrequiredShort title shown to staff. For Q&A entries, use the question.
questionstringThe customer question. Required when kind is 'qa'.
contentstringrequiredThe answer (for 'qa') or the document body (for 'document').
enabledbooleanWhether the entry is active and used by the support chat.
Default:true
Response
JSON result for this operation.
{}