Re-extract triples from a document
POST
/api/v1/documents/{id}/re-extract
const url = 'https://api.yggy.tech/api/v1/documents/example/re-extract';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.yggy.tech/api/v1/documents/example/re-extract \ --header 'Authorization: Bearer <token>'Delete existing triples and re-trigger extraction. Structured documents reuse a stored mapping when it still validates against the current ontology and identity contract; otherwise a new mapping is generated. Unstructured documents re-run the full extraction pipeline.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
Header Parameters
Section titled “Header Parameters ” host
string | null
x-yggy-organization-id
string | null
Responses
Section titled “ Responses ”Re-extraction started
Media type application/json
object
success
required
boolean
documentId
required
string
invocationId
required
string
status
required
string
message
required
string
Example
{ "status": "queued"}Document cannot be re-extracted
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}Document not found
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}