Ingest a path into the graph (long-running, up to 30 min)
POST
/v1/ingest
const url = 'http://localhost:8090/v1/ingest';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"path":"example","recursive":true,"force":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8090/v1/ingest \ --header 'Content-Type: application/json' \ --data '{ "path": "example", "recursive": true, "force": true }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
path
required
Absolute path to ingest
string
recursive
boolean
force
Re-ingest unchanged files
boolean
Examplegenerated
{ "path": "example", "recursive": true, "force": true}Responses
Section titled “ Responses ”Ingestion result
Media typeapplication/json
object
filesProcessed
integer
patchesApplied
integer
filesSkipped
integer
entitiesCreated
integer
latestRev
integer
skipReasons
object
unchanged
integer
emptyFile
integer
parseError
integer
tooLarge
integer
minifiedLikely
integer
Examplegenerated
{ "filesProcessed": 1, "patchesApplied": 1, "filesSkipped": 1, "entitiesCreated": 1, "latestRev": 1, "skipReasons": { "unchanged": 1, "emptyFile": 1, "parseError": 1, "tooLarge": 1, "minifiedLikely": 1 }}