Units
Retrieves a single active unit by its name.
Requires administrative privileges (administrator or service account).
Only units with an active status are returned. Inactive or non‑existent units produce 404 Not Found.
Unit name
Unit retrieved
Unauthorized
Forbidden
Not found
Internal Server Error
GET /api/units/{name} HTTP/1.1
Accept: */*
{
"data": {
"id": 1,
"name": "unit_1",
"status": {
"event": "LoadSucceeded"
}
}
}Replaces a unit's graph data by uploading new node and relationship files.
Requires administrative privileges (administrator or service account).
Request body (multipart/form-data):
nodes(required, file) – File containing node data.rels(required, file) – File containing relationship data.
The files are queued for asynchronous import. The endpoint returns 202 Accepted immediately.
The import is processed in the background; the unit's graph is replaced once the import completes.
Unit name
File upload for nodes data
File upload for relationships data
Unit update accepted
No content
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PUT /api/units/{name} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 48
{
"nodes": "nodes.csv",
"rels": "relationships.csv"
}No content
Deletes a unit and its associated graph data. By default, the deletion is logical (soft delete): the unit is marked with a deleted_at timestamp and a Deleted event is recorded, but the record remains in the database.
Only administrators can delete units.
The deletion is processed asynchronously. The endpoint returns 202 Accepted immediately.
To perform a hard delete (physical removal from the database), pass logical=false. Hard deletes are irreversible and remove the unit along with its node associations and orphaned nodes
Unit name
Set to 'false' to perform a hard delete instead of the default soft delete. Hard deletes are irreversible and remove the unit along with its node associations and orphaned nodes
truePossible values: Unit deletion accepted
No content
Unauthorized
Forbidden
Not found
Internal Server Error
DELETE /api/units/{name} HTTP/1.1
Accept: */*
No content
Replaces a unit's graph data by uploading new node and relationship files.
Requires administrative privileges (administrator or service account).
Request body (multipart/form-data):
nodes(required, file) – File containing node data.rels(required, file) – File containing relationship data.
The files are queued for asynchronous import. The endpoint returns 202 Accepted immediately.
The import is processed in the background; the unit's graph is replaced once the import completes.
Unit name
File upload for nodes data
File upload for relationships data
Unit update accepted
No content
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
PATCH /api/units/{name} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 48
{
"nodes": "nodes.csv",
"rels": "relationships.csv"
}No content
Returns a list of all active lineage units. Units are not filtered by domain or user context; the list is global. Only units with an active status are returned
Only administratos can list units.
No pagination is applied.
Units retrieved
Unauthorized
Forbidden
Internal Server Error
GET /api/units HTTP/1.1
Accept: */*
{
"data": [
{
"id": 1,
"name": "unit_1",
"status": {
"event": "LoadSucceeded"
}
}
]
}Creates a new lineage unit.
Requires administrative privileges (administrator or service account).
Request body:
name(required, string) – Unit name. Must be unique.status(optional, boolean) – Initial status. Default:true.
Unit name
Unit status
Unit created
Unauthorized
Forbidden
Unprocessable Entity
Internal Server Error
POST /api/units HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 31
{
"name": "unit_1",
"status": true
}{
"data": {
"id": 1,
"name": "unit_1",
"status": {
"event": "LoadSucceeded"
}
}
}Returns a list of events associated with a specific unit. Events include operations like LoadStarted, LoadFailed, LoadSucceeded, and Deleted.
Only administratos can list unit events.
Events are returned in full. No pagination is applied.
Unit name
Unit events retrieved
Unauthorized
Forbidden
Not found
Internal Server Error
GET /api/units/{unit_name}/events HTTP/1.1
Accept: */*
{
"events": [
{
"id": 1,
"inserted_at": "2026-05-08T10:00:00Z",
"status": "completed",
"type": "import",
"unit_id": 1,
"updated_at": "2026-05-08T10:00:00Z"
}
]
}Last updated