Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Units

Get unit

get

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.

Path parameters
namestringRequired

Unit name

Responses
200

Unit retrieved

application/json
get/api/units/{name}
GET /api/units/{name} HTTP/1.1
Accept: */*
{
  "data": {
    "id": 1,
    "name": "unit_1",
    "status": {
      "event": "LoadSucceeded"
    }
  }
}

Update unit

put

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.

Path parameters
namestringRequired

Unit name

Body
nodesstring · binaryRequired

File upload for nodes data

relsstring · binaryRequired

File upload for relationships data

Responses
202

Unit update accepted

No content

put/api/units/{name}
PUT /api/units/{name} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 48

{
  "nodes": "nodes.csv",
  "rels": "relationships.csv"
}

No content

Delete unit

delete

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

Path parameters
namestringRequired

Unit name

Query parameters
logicalstring · enumOptional

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

Default: truePossible values:
Responses
202

Unit deletion accepted

No content

delete/api/units/{name}
DELETE /api/units/{name} HTTP/1.1
Accept: */*

No content

Update unit

patch

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.

Path parameters
namestringRequired

Unit name

Body
nodesstring · binaryRequired

File upload for nodes data

relsstring · binaryRequired

File upload for relationships data

Responses
202

Unit update accepted

No content

patch/api/units/{name}
PATCH /api/units/{name} HTTP/1.1
Content-Type: multipart/form-data
Accept: */*
Content-Length: 48

{
  "nodes": "nodes.csv",
  "rels": "relationships.csv"
}

No content

List units

get

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.

Responses
200

Units retrieved

application/json
get/api/units
GET /api/units HTTP/1.1
Accept: */*
{
  "data": [
    {
      "id": 1,
      "name": "unit_1",
      "status": {
        "event": "LoadSucceeded"
      }
    }
  ]
}

Create unit

post

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.

Body
namestringRequired

Unit name

statusboolean · nullableOptional

Unit status

Responses
200

Unit created

application/json
post/api/units
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"
    }
  }
}

List unit events

get

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.

Path parameters
unit_namestringRequired

Unit name

Responses
200

Unit events retrieved

application/json
get/api/units/{unit_name}/events
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