Source knowledge is shared by every migration from that source, so a quirk you
document once pays off on every customer after it. Customer knowledge applies
only to that migration.
Authentication
Requires anx-api-key header. See Authentication.
Read
200 OK. knowledge is null when nothing has been written yet.
migration_id in place of
source:
Write
string
required
Replaces the whole document. Send an empty string to clear it.
string
The
updated_at you last read. Supply it and a concurrent change is refused
with 412 instead of being silently overwritten.Writing safely
The agent rewrites this same field as it learns during a run, so a naive read-modify-write can clobber what it just recorded. Passif_unmodified_since
with the updated_at you read; if it moved underneath you the write is refused
with 412 and you can re-read and merge:
409 means a run is holding the document while it writes — retry shortly.
Errors
Naming a source
{source} is the source’s name as returned by
List sources — URL-encode names with spaces. If the
name is ambiguous across your integrations you’ll get 409; use the exact name
from the list.
Next
- List sources — the names to address here.
- Start a run — knowledge is read before every run.
- Errors & limits — shared conventions.