AI
Update snippet/Q&A knowledge source body and re-embed
PUT
/
v1
/
ai
/
agents
/
{agentID}
/
knowledge
/
sources
/
{sourceID}
Update snippet/Q&A knowledge source body and re-embed
curl --request PUT \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID} \
--header 'Content-Type: application/json' \
--data '
{
"content": {},
"title": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({content: {}, title: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID}"
payload = {
"content": {},
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"audience_rules": {},
"chunkCount": 123,
"content": {},
"created_at": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"quality_status": "<string>",
"source_type": "<string>",
"stale_after_days": 123,
"status": "<string>",
"summary": "<string>",
"title": "<string>",
"type": "<string>",
"updatedAt": "<string>",
"updated_at": "<string>",
"freshness_checked_at": "<string>",
"last_synced_at": "<string>",
"uri": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Response
OK
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Update snippet/Q&A knowledge source body and re-embed
curl --request PUT \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID} \
--header 'Content-Type: application/json' \
--data '
{
"content": {},
"title": "<string>"
}
'const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({content: {}, title: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/knowledge/sources/{sourceID}"
payload = {
"content": {},
"title": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"agent_id": "<string>",
"audience_rules": {},
"chunkCount": 123,
"content": {},
"created_at": "<string>",
"id": "<string>",
"metadata": {},
"name": "<string>",
"quality_status": "<string>",
"source_type": "<string>",
"stale_after_days": 123,
"status": "<string>",
"summary": "<string>",
"title": "<string>",
"type": "<string>",
"updatedAt": "<string>",
"updated_at": "<string>",
"freshness_checked_at": "<string>",
"last_synced_at": "<string>",
"uri": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}