Deskhero Developer Hub
Back to deskhero.com
Faqs

Set visibility

Sets who a FAQ may reach: PUBLIC (the public FAQ portal, the AI chat-bot and AI auto-replies), CHAT_BOT_ONLY (hidden from the portal's navigation, search and sitemap) or INTERNAL_ONLY (only inside the platform, for suggested replies and search; never on the portal, in the chat-bot or in an auto-reply). Content, status and embeddings are untouched.

PUT /api/{tenant:minlength(2)}/v{version:apiVersion}/faqs/set_visibility/{id}
Authorisation
Minimum role: USER

Request arguments

Name Type Source
idInt32
inputDTO_faq_set_visibilityBody
Request body example

Response

Status
200 (OK)
Type
DTO_faq
Wrapper
DTO_response_wrap
Other statuses
400 (BadRequest), 401 (Unauthorized), 403 (Forbidden), 429 (TooManyRequests)
Response body example
DTO_faq_set_visibility
NameTypeReadOnlyDescription
visibilityfaq_visibility (nullable)PUBLIC, CHAT_BOT_ONLY or INTERNAL_ONLY. Required: a request without it is refused, never read as PUBLIC.
DTO_faq
NameTypeReadOnlyDescription
clusterDTO_referenceCluster
cluster_labelDTO_referenceCluster label
categoryDTO_referenceCategory
conflicting_faq_idsInt32[]Conflicting faq ids
conflicting_faqsDTO_faq[]Conflicting faqs
source_ticket_idsInt32[]ReadOnlyFor source REPLY_EDITS: the tickets whose sent replies added the facts
sys_attachmentsDTO_reference_attachment[]ReadOnlyFiles (inline images + attachments) referenced by sys_content_rich, with download URLs
idInt32Id
statusENUM faq_statusStatus
sourceENUM faq_sourceReadOnlyWhere a suggested item came from: CLUSTER, LIVE_IMPORT, REPLY_EDITS; UNKNOWN for items written by a User
questionStringQuestion
answerStringThe answer as plain text - always populated. When the answer has rich formatting this is the server-extracted text variant (what search, embeddings and the AI consume)
sys_content_richDTO_rich_textThe answer as rich text (tiptap). Null while the answer is plain text only
embeddings_status_enum_idInt32Embeddings status enum id
votes_upInt32ReadOnlyPortal feedback votes on the item, maintained server-side
votes_downInt32ReadOnlyVotes down
view_countInt64ReadOnlyViews of the item's public portal page (deduplicated per visitor)
updated_atDateTime (nullable)Updated at
visibilityENUM faq_visibilityReadOnlyWho the item may reach once approved: PUBLIC (portal, AI chat-bot, AI auto-reply), CHAT_BOT_ONLY (as PUBLIC, but off the portal's navigation, search and sitemap) or INTERNAL_ONLY (only inside the platform, for suggested replies and search). Change it with set_visibility.
sys_translation_statusDictionary`2ReadOnlyPer-language state of the stored portal translations, keyed by lowercase language code: true = up to date, false = outdated (retranslated after the next sweep). A configured portal language missing from the map has no stored translation yet. Null when the item has no stored translations.
DTO_reference
NameTypeReadOnlyDescription
idInt32The id of the reference
labelObjectReadOnlyName/Label from referenced object.
DTO_faq
NameTypeReadOnlyDescription
clusterDTO_referenceCluster
cluster_labelDTO_referenceCluster label
categoryDTO_referenceCategory
conflicting_faq_idsInt32[]Conflicting faq ids
conflicting_faqsDTO_faq[]Conflicting faqs
source_ticket_idsInt32[]ReadOnlyFor source REPLY_EDITS: the tickets whose sent replies added the facts
sys_attachmentsDTO_reference_attachment[]ReadOnlyFiles (inline images + attachments) referenced by sys_content_rich, with download URLs
idInt32Id
statusENUM faq_statusStatus
sourceENUM faq_sourceReadOnlyWhere a suggested item came from: CLUSTER, LIVE_IMPORT, REPLY_EDITS; UNKNOWN for items written by a User
questionStringQuestion
answerStringThe answer as plain text - always populated. When the answer has rich formatting this is the server-extracted text variant (what search, embeddings and the AI consume)
sys_content_richDTO_rich_textThe answer as rich text (tiptap). Null while the answer is plain text only
embeddings_status_enum_idInt32Embeddings status enum id
votes_upInt32ReadOnlyPortal feedback votes on the item, maintained server-side
votes_downInt32ReadOnlyVotes down
view_countInt64ReadOnlyViews of the item's public portal page (deduplicated per visitor)
updated_atDateTime (nullable)Updated at
visibilityENUM faq_visibilityReadOnlyWho the item may reach once approved: PUBLIC (portal, AI chat-bot, AI auto-reply), CHAT_BOT_ONLY (as PUBLIC, but off the portal's navigation, search and sitemap) or INTERNAL_ONLY (only inside the platform, for suggested replies and search). Change it with set_visibility.
sys_translation_statusDictionary`2ReadOnlyPer-language state of the stored portal translations, keyed by lowercase language code: true = up to date, false = outdated (retranslated after the next sweep). A configured portal language missing from the map has no stored translation yet. Null when the item has no stored translations.
DTO_reference_attachment
NameTypeReadOnlyDescription
size_kbInt32ReadOnlySize kb
statusENUM attachment_statusReadOnlyStatus
status_messageStringReadOnlyStatus message
download_urlStringReadOnlyDownload url
idInt32Id
labelObjectReadOnlyLabel
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
ENUM faq_status
ValueNameDescription
0UNKNOWNUNKNOWN
1SUGGESTEDSUGGESTED
11MANUALLY_CREATEDMANUALLY_CREATED
21APPROVED_AS_ISAPPROVED_AS_IS
22APPROVED_WITH_EDITSAPPROVED_WITH_EDITS
31DECLINEDDECLINED
32DUPLICATED_IGNOREDUPLICATED_IGNORE
41REMOVEDREMOVED
ENUM faq_source

Where a suggested FAQ item came from

ValueNameDescription
0UNKNOWNUNKNOWN
1CLUSTERCLUSTER
2LIVE_IMPORTLIVE_IMPORT
3REPLY_EDITSREPLY_EDITS
ENUM faq_visibility

Who an approved FAQ item may reach

ValueNameDescription
0PUBLICPUBLIC
1CHAT_BOT_ONLYCHAT_BOT_ONLY
2INTERNAL_ONLYINTERNAL_ONLY
ENUM attachment_status
ValueNameDescription
0UNKNOWNUNKNOWN
1UNAVAILABLEUNAVAILABLE, processing in progress
2OKOK
3WARNINGWARNING
4ERRORERROR

Generated Oct 20, 2026 03:23