POST
/
knowledgeSource
curl --request POST \
  --url https://demo.enneo.ai/api/mind/knowledgeSource \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "type": "faq",
  "status": "active",
  "source": "https://company.com/faq/376189",
  "name": "Opening hours",
  "tags": [
    70,
    71
  ],
  "teams": [
    1,
    2
  ],
  "title": "Opening hours",
  "text": "Our service hours are from 8am to 5pm. We are closed on weekends. [...]",
  "confidential": false
}'
{
  "success": true,
  "id": 123,
  "type": "faq",
  "status": "active",
  "source": "https://company.com/faq/376189",
  "name": "Opening hours",
  "tags": [
    70,
    71
  ],
  "teams": [
    1,
    2
  ],
  "readByAgents": [
    {
      "id": 1,
      "name": "John Doe",
      "readAt": "2024-11-29 14:38:12"
    }
  ],
  "title": "Opening hours",
  "text": "Our service hours are from 8am to 5pm. We are closed on weekends. [...]",
  "confidential": false
}

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Body

application/json

Knowledge source object

id
integer

Internal id, e.g. 123

Example:

123

type
enum<string>
default:faq

Type of knowledge source

Available options:
faq,
work-instruction,
document,
other,
news
status
enum<string>
default:active

Status of the knowledge source

Available options:
active,
archived,
deleted
Example:

"active"

source
string
default:

URL to associated source. null for sources with internal ids (tickets and templates) or if non-existant (language model source)

Example:

"https://company.com/faq/376189"

name
string

Name of knowledge source, any requests with existing name will update the existing knowledge source

Example:

"Opening hours"

tags
integer[] | null

Tags that are assigned to this knowledge source

Example:
[70, 71]
teams
integer[]

(!) Should be used only with type 'news' (otherwise ignored). Teams that are assigned to the knowledge source object

Example:
[1, 2]
title
string | null

Title of knowledge source

Example:

"Opening hours"

text
string

Full text that was used as source

Example:

"Our service hours are from 8am to 5pm. We are closed on weekends. [...]"

confidential
boolean
default:false

If true, then this knowledge source is only visible to agents

Example:

false

Response

200
application/json
Successful operation

Knowledge source object

success
boolean

Operation was successful

Example:

true

id
integer

Internal id, e.g. 123

Example:

123

type
enum<string>
default:faq

Type of knowledge source

Available options:
faq,
work-instruction,
document,
other,
news
status
enum<string>
default:active

Status of the knowledge source

Available options:
active,
archived,
deleted
Example:

"active"

source
string
default:

URL to associated source. null for sources with internal ids (tickets and templates) or if non-existant (language model source)

Example:

"https://company.com/faq/376189"

name
string

Name of knowledge source, any requests with existing name will update the existing knowledge source

Example:

"Opening hours"

tags
integer[] | null

Tags that are assigned to this knowledge source

Example:
[70, 71]
teams
integer[]

(!) Should be used only with type 'news' (otherwise ignored). Teams that are assigned to the knowledge source object

Example:
[1, 2]
readByAgents
object[]

Agents that have read the knowledge source

Example:
[
  {
    "id": 1,
    "name": "John Doe",
    "readAt": "2024-11-29 14:38:12"
  }
]
title
string | null

Title of knowledge source

Example:

"Opening hours"

text
string

Full text that was used as source

Example:

"Our service hours are from 8am to 5pm. We are closed on weekends. [...]"

confidential
boolean
default:false

If true, then this knowledge source is only visible to agents

Example:

false