Deskhero Developer Hub
Back to deskhero.com
Faqs

Import batch

Bulk import of manually created FAQs (max 1000 per request). Duplicates and empty rows are skipped; embeddings are generated in the background.

POST /api/{tenant:minlength(2)}/v{version:apiVersion}/faqs/import_batch
Authorisation
Minimum role: USER

Request arguments

Name Type Source
inputDTO_faq_import_batchBody
Request body example

Response

Status
200 (OK)
Type
DTO_faq_import_result
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 401 (Unauthorized), 403 (Forbidden), 429 (TooManyRequests)
Response body example
DTO_faq_import_batch
NameTypeReadOnlyDescription
itemsDTO_faq_create[]Items
category_idInt32Optional knowledge base category for every imported item; 0/omitted = uncategorized
DTO_faq_import_result
NameTypeReadOnlyDescription
created_countInt32Created count
skipped_duplicate_countInt32Rows skipped because an identical question/answer already exists (or repeats within the batch)
skipped_invalid_countInt32Rows skipped because question or answer was empty
created_category_countInt32Categories that were created because rows named categories that didn't exist yet
DTO_faq_create
NameTypeReadOnlyDescription
questionStringQuestion
answerStringPlain text answer. Ignored when sys_content_rich carries content
sys_content_richDTO_rich_textOptional rich answer (tiptap). The server extracts the plain text variant from it, and only keeps the rich document when it actually contains formatting
category_idInt32Optional knowledge base category; 0/omitted = uncategorized
category_nameStringImport only: optional category by NAME for this row. Wins over the batch category; matched case-insensitively against existing categories, unknown names are created automatically as top-level categories
DTO_rich_text
NameTypeReadOnlyDescription
plain_previewStringReadOnlyPlain preview
htmlStringHtml
editorjsDTO_editorjsEditorjs
tiptapDTO_tiptapTiptap
read_minutesInt32Read minutes
DTO_editorjs
NameTypeReadOnlyDescription
timeInt64Time
versionStringVersion
blocksDTO_editorjs_block[]Blocks
DTO_editorjs_block
NameTypeReadOnlyDescription
idStringId
typeStringType
dataObjectData
DTO_tiptap
NameTypeReadOnlyDescription
typeStringType
contentDTO_tiptap_node[]Content
DTO_tiptap_node
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs
contentDTO_tiptap_node[]Content
textStringText
marksDTO_tiptap_mark[]Marks
DTO_tiptap_attrs
NameTypeReadOnlyDescription
textAlignStringTextalign
levelInt32 (nullable)Level
checkedBoolean (nullable)Checked
idInt32 (nullable)Id
altStringAlt
titleStringTitle
widthStringWidth
wrapperStyleStringWrapperstyle
containerStyleStringContainerstyle
filesDTO_tiptap_file_ref[]Files
hrefStringHref
targetStringTarget
colspanInt32 (nullable)Colspan
rowspanInt32 (nullable)Rowspan
colorStringColor
textStringText
nameStringFor emoji
nativeStringFor emoji
DTO_tiptap_file_ref
NameTypeReadOnlyDescription
idInt32Id
labelStringLabel
DTO_tiptap_mark
NameTypeReadOnlyDescription
typeStringType
attrsDTO_tiptap_attrsAttrs

Generated Sep 18, 2026 09:31