Update a knowledge’s attributes. Each request can include either files or sync, but not both. When files are provided, all existing data is replaced and a re-processing pipeline runs asynchronously — this consumes credits based on the volume of data processed. Metadata-only and sync-only updates do not consume credits and are not blocked by credit eligibility checks. If the asynchronous processing run later fails, subsequent retrievals surface that terminal state through status and last_error.
Documentation Index
Fetch the complete documentation index at: https://developers.datagrid.com/llms.txt
Use this file to discover all available pages before exploring further.
payload_too_large); see Knowledge upload limits for typical caps and strategies.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The id of the knowledge to update.
The new name for the knowledge.
The visibility scope of the knowledge. 'teamspace' means visible only within the owning teamspace. 'organization' means visible across all teamspaces in the same organization.
teamspace, organization The parent page reference, indicating where this page is nested
The files to replace existing knowledge. When provided, all existing data will be removed from the knowledge and replaced with these files. Supported media types are pdf, json, csv, text, png, jpeg, excel, google sheets, docx, pptx. Cannot be used together with sync in the same request.
Sync configuration updates for knowledge created from a connection. Note: For multipart/form-data, this should be sent as a JSON string. Cannot be used together with files in the same request.
Successfully updated knowledge
The knowledge object represents knowledge that an agent may leverage to respond.
The object type, which is always knowledge.
knowledge The knowledge identifier, which can be referenced in the API endpoints.
The name of the knowledge.
The ID of the teamspace that owns this knowledge.
The visibility scope of the knowledge. 'teamspace' means visible only within the owning teamspace. 'organization' means visible across all teamspaces in the same organization.
teamspace, organization The parent page reference, indicating where this page is nested
The ISO string for when the knowledge was created.
The current knowledge status. pending indicates that processing has started but no rows have been learned yet. partial indicates that some rows are available, but processing is either still running or ended with incomplete results. ready indicates that processing finished successfully and the knowledge is fully available. failed indicates that no rows are currently available and the knowledge reached a terminal failure state, either because the latest asynchronous processing or re-index run ended unsuccessfully before any rows became available, or because every row ended in a persistent failed state.
pending, partial, ready, failed The last terminal processing error for this knowledge, if any. Present when the latest asynchronous processing or re-index run ended unsuccessfully; null when the knowledge is failed only because every row ended in a persistent failed state.
Row count statistics for the knowledge.
Credit consumption for this knowledge. null when the knowledge is still being processed and the final cost is not yet known (e.g. immediately after creation or reindexing), or when the credit lookup fails. When present, consumed is the current summed spend for the knowledge's active tables — it is not necessarily the cost of the most recent request, nor the full lifetime spend.
Sync information for knowledge that syncs data from a connection
The ISO string for when the knowledge was last updated.