Skip to main content
POST
/
knowledge
/
edit
Create/Edit Agent Knowledge
curl --request POST \
  --url https://api.wppfy.com/knowledge/edit \
  --header 'Content-Type: application/json' \
  --header 'token: <api-key>' \
  --data '
{
  "id": "",
  "delete": false,
  "knowledge": {
    "isActive": true,
    "tittle": "Information about WppFy",
    "content": "WppFy was originally developed..."
  }
}
'
{
  "id": "r1a2b3c4",
  "active": false,
  "tittle": "",
  "content": "",
  "vectorStatus": "",
  "isVectorized": false,
  "lastVectorizedAt": 0,
  "owner": "",
  "priority": 0,
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

token
string
header
required

Body

application/json
id
string

Knowledge ID (empty to create new)

delete
boolean

Defines if it is a delete operation

knowledge
object
fileType
enum<string>

File type when not detected automatically

Available options:
pdf,
txt,
html,
csv

Response

Knowledge updated successfully

id
string
required

ID único gerado automaticamente

Example:

"r1a2b3c4"

active
boolean
default:false
required

Indica se o conhecimento está ativo

tittle
string
default:""
required

Título do conhecimento

content
string
default:""
required

Conteúdo textual do conhecimento

vectorStatus
string
default:""

Status da vetorização no sistema

isVectorized
boolean
default:false

Indica se o conteúdo foi vetorizado

lastVectorizedAt
integer<int64>
default:0

Timestamp da última vetorização

owner
string
default:""

Proprietário do conhecimento

priority
integer<int64>
default:0

Prioridade de uso do conhecimento

created
string<date-time>

Data de criação

updated
string<date-time>

Data de atualização