Update Agent Knowledge
PATCHhttps://a.klaviyo.com/api/agent-knowledge/{id}
Patches editable fields on an Agent Knowledge item.
For snippets, update title and/or content. For Q&A pairs, update question and/or answer. Re-indexing on content or answer change is automatic.
- Revision header
revision: 2026-10-15.prerequired- Scopes
agents:write- Rate limits
- Burst:
10/sSteady:150/m
Path parameters
Query parameters
For more information please visit API overview
Headers
API endpoint revision (format: YYYY-MM-DD[.suffix])
2026-10-15.pre
Request body
Content type: application/vnd.api+jsonrequired
Show 3 fields
Agent Knowledge identifier. This must match the
agent_knowledge_idpath parameter.Show 4 fields
Human-readable title for the snippet.
Text body for the snippet. Re-indexing is automatic when changed.
Question text for a Q&A knowledge item.
Answer text for a Q&A knowledge item. Re-indexing is automatic when changed.
Responses
200Success
Content type: application/vnd.api+json
Show 4 fields
Unique Agent Knowledge identifier.
Show 7 fields
Source payload for the knowledge item.
Option 2:
AgentKnowledgeWebpageResponseSourceThe knowledge item was created from a webpage.
Normalized URL for the webpage-backed knowledge item.
Page title from the webpage's HTML, once crawled; otherwise null.
Crawl scope for the webpage-backed knowledge item.
Whether the webpage is periodically re-indexed.
URL paths skipped when crawling a
selected-pageswebpage. Values are normalized and may include paths Customer Agent excludes automatically.Total number of pages discovered beneath this webpage, at any depth, in every indexing state. Use it with
indexed_child_countandpending_child_countto track the progress of a site crawl, which can take hours. Only populated when listed via GET /agent-knowledge; null when fetched by id via GET /agent-knowledge/{id}, and null for every non-webpage source.0is not null: it means a webpage with no pages beneath it yet.Number of those pages that have finished indexing. Null under the same conditions as
child_count. This andpending_child_countdo not necessarily add up tochild_count, which also counts pages that failed or were rejected.Number of those pages still waiting to be indexed. Null under the same conditions as
child_count. Pages that failed or were rejected are not counted here, so this is notchild_countminusindexed_child_count.
Option 4:
AgentKnowledgeFolderResponseSourceThe knowledge item is a folder that organizes other knowledge items.
Human-readable title for the folder.
Number of knowledge items nested under this folder at any depth (nested folders don't count themselves, only their contents do). Only populated when listed via GET /agent-knowledge; null when fetched by id via GET /agent-knowledge/{id}.
Indexing lifecycle state for the knowledge item.
Date and time when the knowledge item was created.
Date and time when the knowledge item was last updated.
Date and time when indexing completed, if available.
Error message when indexing failed; otherwise null.
ISO 3166-1 alpha-2 codes of the countries the knowledge item is available in. Null means it is available in every country.
Show 1 field
4XXClient Error
Content type: application/vnd.api+json
5XXServer Error
Content type: application/vnd.api+json