Saasco logoSaasco logo
Saasco logoSaasco logo

Introduction

OverviewGetting startedAgent setupWhat is Saasco?

SDK

Quick startTrackingIdentifyConfigurationWidgetsProperties

MCP

Quick startHow it worksAuthorizationTool reference
Skills for agents

REST API

Quick start
getList Knowledge GapsgetGet Knowledge GappostLink Knowledge Gap ArticlepostUnlink Knowledge Gap ArticlepostReopen Knowledge GappostDismiss Knowledge GappostSave Knowledge Gap Article
KnowledgeKnowledge Gaps

Link Knowledge Gap Article

View as MarkdownAgent setup

Links a knowledge gap to an article that already exists on the project, public or internal. A published article marks the gap answered. A draft leaves it unanswered until that article is published. Replaces an article already linked to the gap. The previous article is left in place, including a draft created for the gap, and is not deleted. A dismissed gap stays dismissed until it is reopened. Returns 404 with message "Knowledge gap not found" or "Article not found".

POST
/projects/{projectId}/knowledge/gaps/{id}/link

Authorization

Authorization
AuthorizationBearer <token>

In: header

Path Parameters

projectIdrequiredstring

ID of the project that owns the gap.

idrequiredstring

ID of the knowledge gap.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

articleIdrequiredstring

ID of an existing article on this project. Public or internal, draft or published.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/projects/string/knowledge/gaps/string/link" \  -H "Content-Type: application/json" \  -d '{    "articleId": "string"  }'
{  "articleId": "string",  "previousArticleId": "string",  "status": "unanswered"}

Get Knowledge Gap

Reads one knowledge gap, including dismissed gaps. Returns the customer question, what they were trying to do, why the support agent could not answer, the searches it tried, the suggested outline and title, the channel, the conversation id, how many times it occurred, and the linked article with its type and publication state. status answered means that article is published, whether it is public or internal. A draft stays unanswered. Returns null when the id is not a gap on this project.

Unlink Knowledge Gap Article

Clears the article linked to a knowledge gap. The article itself is not deleted. An answered gap becomes unanswered. A dismissed gap stays dismissed. A gap that already has no article returns previousArticleId null. Returns 404 with message "Knowledge gap not found" when the id is not a gap on this project.