Skip to main content
POST
/
api
/
v1
/
debug
/
assistant-functions
/
save-knowledge-item
Debug Save Knowledge Item
curl --request POST \
  --url http://localhost:8000/api/v1/debug/assistant-functions/save-knowledge-item \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "google_ads_customer_id": "<string>",
  "text": "<string>",
  "google_ads_login_customer_id": "<string>",
  "auto_trigger_analysis": true
}
'
{
  "success": true,
  "data": "<string>",
  "execution_time_ms": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Schema for debugging save_knowledge_item function.

google_ads_customer_id
string
required

The Google Ads customer ID

text
string
required

The text content to save as a knowledge item

google_ads_login_customer_id
string | null

The Google Ads login customer ID

auto_trigger_analysis
boolean
default:true

Flag to trigger analysis after saving the item

Response

Successful Response

Schema for debug function responses.

success
boolean
required

Whether the function executed successfully

data
string
required

JSON string containing the function result or error information

execution_time_ms
number | null

Function execution time in milliseconds