Browse queries, mutations, and types in the schema reference. For authentication, endpoint URLs, and domain guides, see the API Overview.
Create a new knowledge base topic.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The topic title.
Description of the topic.
Categories within this topic.
URL of the background image for the topic page.
ISO language code for the topic content (e.g. 'en', 'ar').
User ID of the topic creator.
When this topic was created.
User ID of the last modifier.
When this topic was last modified.
Top-level parent categories within this topic.
mutation knowledgeBaseTopicsAdd($doc: KnowledgeBaseTopicDoc!) {
knowledgeBaseTopicsAdd(doc: $doc) {
_id
code
title
description
categories {
_id
code
title
description
articles(
# Arguments Here
) {
__typename
# ...KnowledgeBaseArticleFragment
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
__typename
# ...KnowledgeBaseTopicFragment
}
authors {
__typename
# ...UserFragment
}
numOfArticles(
# Arguments Here
)
countArticles
}
workspace {
_id
name
description
code
userId
createdAt
memberIds
}
color
backgroundImage
languageCode
createdBy
createdDate
modifiedBy
modifiedDate
parentCategories {
_id
code
title
description
articles {
__typename
# ...KnowledgeBaseArticleFragment
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
__typename
# ...KnowledgeBaseTopicFragment
}
authors {
__typename
# ...UserFragment
}
numOfArticles(
# Arguments Here
)
childrens {
__typename
# ...KnowledgeBaseCategoryFragment
}
}
}
}{ "doc": { "code": "Example String", "title": "Example String", "description": "Example String", "categoryIds": [ "Example String" ], "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String" } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "categories": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "__typename": "KnowledgeBaseArticle" } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "__typename": "KnowledgeBaseTopic" }, "authors": [ { "__typename": "User" } ], "numOfArticles": 40, "countArticles": 40 } ], "workspace": { "_id": "Example String", "name": "Example String", "description": "Example String", "code": "Example String", "userId": "Example String", "createdAt": "Example Custom Scalar", "memberIds": [ "Example String" ] }, "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategories": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "__typename": "KnowledgeBaseArticle" } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "__typename": "KnowledgeBaseTopic" }, "authors": [ { "__typename": "User" } ], "numOfArticles": 40, "childrens": [ { "__typename": "KnowledgeBaseCategory" } ] } ] } }
Update an existing knowledge base topic.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The topic title.
Description of the topic.
Categories within this topic.
URL of the background image for the topic page.
ISO language code for the topic content (e.g. 'en', 'ar').
User ID of the topic creator.
When this topic was created.
User ID of the last modifier.
When this topic was last modified.
Top-level parent categories within this topic.
mutation knowledgeBaseTopicsEdit($_id: String!, $doc: KnowledgeBaseTopicDoc!) {
knowledgeBaseTopicsEdit(_id: $_id, doc: $doc) {
_id
code
title
description
categories {
_id
code
title
description
articles(
# Arguments Here
) {
__typename
# ...KnowledgeBaseArticleFragment
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
__typename
# ...KnowledgeBaseTopicFragment
}
authors {
__typename
# ...UserFragment
}
numOfArticles(
# Arguments Here
)
countArticles
}
workspace {
_id
name
description
code
userId
createdAt
memberIds
}
color
backgroundImage
languageCode
createdBy
createdDate
modifiedBy
modifiedDate
parentCategories {
_id
code
title
description
articles {
__typename
# ...KnowledgeBaseArticleFragment
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
__typename
# ...KnowledgeBaseTopicFragment
}
authors {
__typename
# ...UserFragment
}
numOfArticles(
# Arguments Here
)
childrens {
__typename
# ...KnowledgeBaseCategoryFragment
}
}
}
}{ "_id": "Example String", "doc": { "code": "Example String", "title": "Example String", "description": "Example String", "categoryIds": [ "Example String" ], "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String" } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "categories": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "__typename": "KnowledgeBaseArticle" } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "__typename": "KnowledgeBaseTopic" }, "authors": [ { "__typename": "User" } ], "numOfArticles": 40, "countArticles": 40 } ], "workspace": { "_id": "Example String", "name": "Example String", "description": "Example String", "code": "Example String", "userId": "Example String", "createdAt": "Example Custom Scalar", "memberIds": [ "Example String" ] }, "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategories": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "__typename": "KnowledgeBaseArticle" } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "__typename": "KnowledgeBaseTopic" }, "authors": [ { "__typename": "User" } ], "numOfArticles": 40, "childrens": [ { "__typename": "KnowledgeBaseCategory" } ] } ] } }
Delete a knowledge base topic and disassociate its categories.
Arguments
Return type
Jmutation knowledgeBaseTopicsRemove($_id: String!) {
knowledgeBaseTopicsRemove(_id: $_id)
}{ "_id": "Example String" }
{ "data": "Example Custom Scalar" }
Create a new knowledge base category.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The category title.
Description of what this category covers.
Articles in this category, optionally filtered by status.
Icon identifier for the category.
User ID of the category creator.
When this category was created.
User ID of the last modifier.
When this category was last modified.
Parent category ID for nested categorization.
The first topic this category belongs to.
Users who have authored articles in this category.
Count of articles in this category, optionally filtered by status.
Total article count in this category.
mutation knowledgeBaseCategoriesAdd($doc: KnowledgeBaseCategoryDoc!) {
knowledgeBaseCategoriesAdd(doc: $doc) {
_id
code
title
description
articles(
# Arguments Here
) {
_id
code
title
summary
content
status
isPrivate
reactionChoices
reactionCounts
createdBy
createdUser {
__typename
# ...UserFragment
}
createdDate
modifiedBy
modifiedDate
topicId
categoryId
viewCount
attachments {
__typename
# ...AttachmentFragment
}
image {
__typename
# ...AttachmentFragment
}
pdfAttachment {
__typename
# ...PdfAttachmentFragment
}
publishedUserId
publishedUser {
__typename
# ...UserFragment
}
scheduledDate
forms {
__typename
# ...FormCodeFragment
}
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
_id
code
title
description
categories {
__typename
# ...KnowledgeBaseCategoryFragment
}
workspace {
__typename
# ...WorkspaceFragment
}
color
backgroundImage
languageCode
createdBy
createdDate
modifiedBy
modifiedDate
parentCategories {
__typename
# ...KnowledgeBaseParentCategoryFragment
}
}
authors {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
numOfArticles(
# Arguments Here
)
countArticles
}
}{ "doc": { "code": "Example String", "title": "Example String", "description": "Example String", "articleIds": [ "Example String" ], "icon": "Example String", "topicIds": [ "Example String" ], "topicId": "Example String", "parentCategoryId": "Example String" } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "reactionCounts": "Example Custom Scalar", "createdBy": "Example String", "createdUser": { "__typename": "User" }, "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "topicId": "Example String", "categoryId": "Example String", "viewCount": 40, "attachments": [ { "__typename": "Attachment" } ], "image": { "__typename": "Attachment" }, "pdfAttachment": { "__typename": "PdfAttachment" }, "publishedUserId": "Example String", "publishedUser": { "__typename": "User" }, "scheduledDate": "Example Custom Scalar", "forms": [ { "__typename": "FormCode" } ] } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "categories": [ { "__typename": "KnowledgeBaseCategory" } ], "workspace": { "__typename": "Workspace" }, "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategories": [ { "__typename": "KnowledgeBaseParentCategory" } ] }, "authors": [ { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true } ], "numOfArticles": 40, "countArticles": 40 } }
Update an existing knowledge base category.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The category title.
Description of what this category covers.
Articles in this category, optionally filtered by status.
Icon identifier for the category.
User ID of the category creator.
When this category was created.
User ID of the last modifier.
When this category was last modified.
Parent category ID for nested categorization.
The first topic this category belongs to.
Users who have authored articles in this category.
Count of articles in this category, optionally filtered by status.
Total article count in this category.
mutation knowledgeBaseCategoriesEdit($_id: String!, $doc: KnowledgeBaseCategoryDoc!) {
knowledgeBaseCategoriesEdit(_id: $_id, doc: $doc) {
_id
code
title
description
articles(
# Arguments Here
) {
_id
code
title
summary
content
status
isPrivate
reactionChoices
reactionCounts
createdBy
createdUser {
__typename
# ...UserFragment
}
createdDate
modifiedBy
modifiedDate
topicId
categoryId
viewCount
attachments {
__typename
# ...AttachmentFragment
}
image {
__typename
# ...AttachmentFragment
}
pdfAttachment {
__typename
# ...PdfAttachmentFragment
}
publishedUserId
publishedUser {
__typename
# ...UserFragment
}
scheduledDate
forms {
__typename
# ...FormCodeFragment
}
}
icon
createdBy
createdDate
modifiedBy
modifiedDate
parentCategoryId
firstTopic {
_id
code
title
description
categories {
__typename
# ...KnowledgeBaseCategoryFragment
}
workspace {
__typename
# ...WorkspaceFragment
}
color
backgroundImage
languageCode
createdBy
createdDate
modifiedBy
modifiedDate
parentCategories {
__typename
# ...KnowledgeBaseParentCategoryFragment
}
}
authors {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
numOfArticles(
# Arguments Here
)
countArticles
}
}{ "_id": "Example String", "doc": { "code": "Example String", "title": "Example String", "description": "Example String", "articleIds": [ "Example String" ], "icon": "Example String", "topicIds": [ "Example String" ], "topicId": "Example String", "parentCategoryId": "Example String" } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "articles": [ { "_id": "Example String", "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "reactionCounts": "Example Custom Scalar", "createdBy": "Example String", "createdUser": { "__typename": "User" }, "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "topicId": "Example String", "categoryId": "Example String", "viewCount": 40, "attachments": [ { "__typename": "Attachment" } ], "image": { "__typename": "Attachment" }, "pdfAttachment": { "__typename": "PdfAttachment" }, "publishedUserId": "Example String", "publishedUser": { "__typename": "User" }, "scheduledDate": "Example Custom Scalar", "forms": [ { "__typename": "FormCode" } ] } ], "icon": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategoryId": "Example String", "firstTopic": { "_id": "Example String", "code": "Example String", "title": "Example String", "description": "Example String", "categories": [ { "__typename": "KnowledgeBaseCategory" } ], "workspace": { "__typename": "Workspace" }, "color": "Example String", "backgroundImage": "Example String", "languageCode": "Example String", "createdBy": "Example String", "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "parentCategories": [ { "__typename": "KnowledgeBaseParentCategory" } ] }, "authors": [ { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true } ], "numOfArticles": 40, "countArticles": 40 } }
Delete a knowledge base category and unlink its articles.
Arguments
Return type
Jmutation knowledgeBaseCategoriesRemove($_id: String!) {
knowledgeBaseCategoriesRemove(_id: $_id)
}{ "_id": "Example String" }
{ "data": "Example Custom Scalar" }
Create a new knowledge base article.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The article title.
Brief summary or excerpt of the article content.
Full article content (HTML).
Publication status: 'draft', 'publish', or 'scheduled'.
Whether this article is only visible to team members.
Available emoji reaction types for this article.
Count of each reaction type received.
User ID of the article creator.
The resolved user who created this article.
When this article was created.
User ID of the last modifier.
When this article was last modified.
The topic this article belongs to.
The category this article belongs to.
Total number of times this article has been viewed.
File attachments included with this article.
Featured image for the article.
PDF attachment with extracted page images.
User ID of who published this article.
The resolved user who published this article.
Scheduled publication date (for status 'scheduled').
Forms embedded in this article.
mutation knowledgeBaseArticlesAdd($doc: KnowledgeBaseArticleDoc!) {
knowledgeBaseArticlesAdd(doc: $doc) {
_id
code
title
summary
content
status
isPrivate
reactionChoices
reactionCounts
createdBy
createdUser {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
createdDate
modifiedBy
modifiedDate
topicId
categoryId
viewCount
attachments {
url
name
type
size
duration
locationData {
__typename
# ...LocationDataFragment
}
}
image {
url
name
type
size
duration
locationData {
__typename
# ...LocationDataFragment
}
}
pdfAttachment {
pdf {
__typename
# ...AttachmentFragment
}
pages {
__typename
# ...AttachmentFragment
}
}
publishedUserId
publishedUser {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
scheduledDate
forms {
workspaceId
formId
}
}
}{ "doc": { "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "categoryIds": [ "Example String" ], "topicId": "Example String", "categoryId": "Example String", "image": { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationDataInput" } }, "attachments": [ { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationDataInput" } } ], "pdfAttachment": { "pdf": { "__typename": "AttachmentInput" }, "pages": [ { "__typename": "AttachmentInput" } ] }, "scheduledDate": "Example Custom Scalar", "forms": [ { "workspaceId": "Example String", "formId": "Example String" } ] } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "reactionCounts": "Example Custom Scalar", "createdBy": "Example String", "createdUser": { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true }, "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "topicId": "Example String", "categoryId": "Example String", "viewCount": 40, "attachments": [ { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationData" } } ], "image": { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationData" } }, "pdfAttachment": { "pdf": { "__typename": "Attachment" }, "pages": [ { "__typename": "Attachment" } ] }, "publishedUserId": "Example String", "publishedUser": { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true }, "scheduledDate": "Example Custom Scalar", "forms": [ { "workspaceId": "Example String", "formId": "Example String" } ] } }
Update an existing knowledge base article.
Arguments
Return type
KnowledgeUnique code identifier for programmatic access.
The article title.
Brief summary or excerpt of the article content.
Full article content (HTML).
Publication status: 'draft', 'publish', or 'scheduled'.
Whether this article is only visible to team members.
Available emoji reaction types for this article.
Count of each reaction type received.
User ID of the article creator.
The resolved user who created this article.
When this article was created.
User ID of the last modifier.
When this article was last modified.
The topic this article belongs to.
The category this article belongs to.
Total number of times this article has been viewed.
File attachments included with this article.
Featured image for the article.
PDF attachment with extracted page images.
User ID of who published this article.
The resolved user who published this article.
Scheduled publication date (for status 'scheduled').
Forms embedded in this article.
mutation knowledgeBaseArticlesEdit($_id: String!, $doc: KnowledgeBaseArticleDoc!) {
knowledgeBaseArticlesEdit(_id: $_id, doc: $doc) {
_id
code
title
summary
content
status
isPrivate
reactionChoices
reactionCounts
createdBy
createdUser {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
createdDate
modifiedBy
modifiedDate
topicId
categoryId
viewCount
attachments {
url
name
type
size
duration
locationData {
__typename
# ...LocationDataFragment
}
}
image {
url
name
type
size
duration
locationData {
__typename
# ...LocationDataFragment
}
}
pdfAttachment {
pdf {
__typename
# ...AttachmentFragment
}
pages {
__typename
# ...AttachmentFragment
}
}
publishedUserId
publishedUser {
_id
createdAt
username
email
userPreferences
availability
isActive
details {
__typename
# ...UserDetailsTypeFragment
}
links
status
emailSignatures
groupIds
workspaceIds
isSubscribed
customFieldsData
workspaces {
__typename
# ...WorkspaceFragment
}
isOwner
permissionActions
configs
configsConstants
onboardingHistory {
__typename
# ...OnboardingHistoryFragment
}
departmentIds
departments {
__typename
# ...DepartmentFragment
}
branchIds
branches {
__typename
# ...BranchFragment
}
positionIds
positions {
__typename
# ...PositionFragment
}
score
scoreCategories {
__typename
# ...ScoreCategoriesFragment
}
leaderBoardPosition
employeeId
isOnline
}
scheduledDate
forms {
workspaceId
formId
}
}
}{ "_id": "Example String", "doc": { "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "categoryIds": [ "Example String" ], "topicId": "Example String", "categoryId": "Example String", "image": { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationDataInput" } }, "attachments": [ { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationDataInput" } } ], "pdfAttachment": { "pdf": { "__typename": "AttachmentInput" }, "pages": [ { "__typename": "AttachmentInput" } ] }, "scheduledDate": "Example Custom Scalar", "forms": [ { "workspaceId": "Example String", "formId": "Example String" } ] } }
{ "data": { "_id": "Example String", "code": "Example String", "title": "Example String", "summary": "Example String", "content": "Example String", "status": "Example String", "isPrivate": true, "reactionChoices": [ "Example String" ], "reactionCounts": "Example Custom Scalar", "createdBy": "Example String", "createdUser": { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true }, "createdDate": "Example Custom Scalar", "modifiedBy": "Example String", "modifiedDate": "Example Custom Scalar", "topicId": "Example String", "categoryId": "Example String", "viewCount": 40, "attachments": [ { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationData" } } ], "image": { "url": "Example String", "name": "Example String", "type": "Example String", "size": 40, "duration": 40, "locationData": { "__typename": "LocationData" } }, "pdfAttachment": { "pdf": { "__typename": "Attachment" }, "pages": [ { "__typename": "Attachment" } ] }, "publishedUserId": "Example String", "publishedUser": { "_id": "Example String", "createdAt": "Example Custom Scalar", "username": "Example String", "email": "Example String", "userPreferences": "Example Custom Scalar", "availability": "offline", "isActive": true, "details": { "__typename": "UserDetailsType" }, "links": "Example Custom Scalar", "status": "Example String", "emailSignatures": "Example Custom Scalar", "groupIds": [ "Example String" ], "workspaceIds": [ "Example String" ], "isSubscribed": "Example String", "customFieldsData": "Example Custom Scalar", "workspaces": [ { "__typename": "Workspace" } ], "isOwner": true, "permissionActions": "Example Custom Scalar", "configs": "Example Custom Scalar", "configsConstants": [ "Example Custom Scalar" ], "onboardingHistory": { "__typename": "OnboardingHistory" }, "departmentIds": [ "Example String" ], "departments": [ { "__typename": "Department" } ], "branchIds": [ "Example String" ], "branches": [ { "__typename": "Branch" } ], "positionIds": [ "Example String" ], "positions": [ { "__typename": "Position" } ], "score": 40, "scoreCategories": { "__typename": "ScoreCategories" }, "leaderBoardPosition": 40, "employeeId": "Example String", "isOnline": true }, "scheduledDate": "Example Custom Scalar", "forms": [ { "workspaceId": "Example String", "formId": "Example String" } ] } }
Delete a knowledge base article.
Arguments
Return type
Jmutation knowledgeBaseArticlesRemove($_id: String!) {
knowledgeBaseArticlesRemove(_id: $_id)
}{ "_id": "Example String" }
{ "data": "Example Custom Scalar" }