Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2026-07-15/reference/update_agent_knowledge_beta.md. Its OpenAPI document is at https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/update_agent_knowledge_beta.json. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2026-07-15

This endpoint is in beta. Call it with the revision header 2026-07-15.pre. Beta endpoints may change before they're generally available. See our versioning and deprecation policy for more information.

You're reading the reference for API revision 2026-07-15. The latest revision is 2026-10-15. See this page in the latest revision.

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-07-15.prerequired
Scopes
agents:write
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

Query parameters

  • fields[agent-knowledge]#string[]

    For more information please visit API overview

    Show 16 allowed values
    • created_at
    • error
    • id
    • indexed_at
    • source
    • source.answer
    • source.auto_reindex
    • source.child_count
    • source.content
    • source.question
    • source.scope
    • source.source_type
    • source.title
    • source.url
    • status
    • updated_at

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2026-07-15.pre

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • agent-knowledge
    • id#stringrequired

      Agent Knowledge identifier. This must match the agent_knowledge_id path parameter.

    • attributes#objectrequired
      Show 4 fields
      • title#stringnullable

        Human-readable title for the snippet.

      • content#stringnullable

        Text body for the snippet. Re-indexing is automatic when changed.

      • question#stringnullable

        Question text for a Q&A knowledge item.

      • answer#stringnullable

        Answer text for a Q&A knowledge item. Re-indexing is automatic when changed.

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • agent-knowledge
    • id#stringrequired

      Unique Agent Knowledge identifier.

    • attributes#objectrequired
      Show 6 fields
      • source#oneOfrequired

        Source payload for the knowledge item.

        One of:

        1. Option 1: AgentKnowledgeSnippetResponseSource
          • source_type#stringrequired

            The knowledge item was created from caller-provided content.

            Allowed values:
            • snippet
          • title#stringnullable

            Human-readable title for the snippet.

          • content#stringnullable

            Text body for the snippet.

        2. Option 2: AgentKnowledgeWebpageResponseSource
          • source_type#stringrequired

            The knowledge item was created from a webpage.

            Allowed values:
            • webpage
          • url#stringnullable

            Normalized URL for the webpage-backed knowledge item.

          • scope#stringnullable

            Crawl scope for the webpage-backed knowledge item.

            Allowed values:
            • single-page
            • entire-site
          • auto_reindex#booleannullable

            Whether the webpage is periodically re-indexed.

        3. Option 3: AgentKnowledgeFileResponseSource
          • source_type#stringrequired

            The knowledge item was created from an uploaded file.

            Allowed values:
            • file
          • title#stringnullable

            Human-readable title for the file-backed knowledge item.

        4. Option 4: AgentKnowledgeFolderResponseSource
          • source_type#stringrequired

            The knowledge item is a folder that organizes other knowledge items.

            Allowed values:
            • folder
          • title#stringnullable

            Human-readable title for the folder.

          • child_count#integernullable

            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}.

        5. Option 5: AgentKnowledgeQaResponseSource
          • source_type#stringrequired

            The knowledge item is a question-and-answer pair.

            Allowed values:
            • qa
          • question#stringnullable

            Question text for the Q&A pair.

          • answer#stringnullable

            Answer text for the Q&A pair.

      • status#stringrequired

        Indexing lifecycle state for the knowledge item.

        Allowed values:
        • pending
        • indexing
        • indexed
        • failed
        • rejected
      • created_at#string<date-time>required

        Date and time when the knowledge item was created.

        Example: 2022-11-08T00:00:00+00:00

      • updated_at#string<date-time>required

        Date and time when the knowledge item was last updated.

        Example: 2022-11-08T00:00:00+00:00

      • indexed_at#string<date-time>nullable

        Date and time when indexing completed, if available.

        Example: 2022-11-08T00:00:00+00:00

      • error#stringnullable

        Error message when indexing failed; otherwise null.

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string