Graph Versions

GET /api/v1/graphs/{id}/versions

Get Graph Versions

Parameters

NameInTypeRequired
idpathstringtrue

Response

Type: []GraphVersion

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
graph_iduuid.UUID
versionstring
version_numberuint
space_namestringDGraph namespace identifier (predicate prefix)
schemastringJSON schema definition
node_countint64
edge_countint64
configstringJSON config for version-specific settings
metrics[]GraphMetricMetrics and statistics

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions

POST /api/v1/graphs/{id}/versions

Create Graph Version

Parameters

NameInTypeRequired
idpathstringtrue

Response

Type: GraphVersion

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
graph_iduuid.UUID
versionstring
version_numberuint
space_namestringDGraph namespace identifier (predicate prefix)
schemastringJSON schema definition
node_countint64
edge_countint64
configstringJSON config for version-specific settings
metrics[]GraphMetricMetrics and statistics

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions

GET /api/v1/graphs/{id}/versions/{version_id}

Get Graph Version

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Response

Type: GraphVersion

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
graph_iduuid.UUID
versionstring
version_numberuint
space_namestringDGraph namespace identifier (predicate prefix)
schemastringJSON schema definition
node_countint64
edge_countint64
configstringJSON config for version-specific settings
metrics[]GraphMetricMetrics and statistics

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}

PUT /api/v1/graphs/{id}/versions/{version_id}

Update Graph Version

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Response

Type: GraphVersion

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
graph_iduuid.UUID
versionstring
version_numberuint
space_namestringDGraph namespace identifier (predicate prefix)
schemastringJSON schema definition
node_countint64
edge_countint64
configstringJSON config for version-specific settings
metrics[]GraphMetricMetrics and statistics

Example

curl -X PUT \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}

DELETE /api/v1/graphs/{id}/versions/{version_id}

Delete Graph Version

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Example

curl -X DELETE \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}

POST /api/v1/graphs/{id}/versions/{version_id}/activate

Create set Active Graph Version

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Response

Type: Graph

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
notesstring
has_logobool
logostring
publicbool
shared_with_mebool
share_rolestringRole slug if shared (share_viewer, share_editor) (optional)
organization_idstringMulti-tenancy fields (Phase 1 RBAC)
These are nullable to maintain backward compatibility - resources without
org/project assignment belong to the user’s “personal workspace” (optional)
project_idstring(optional)
visibilitystringVisibility controls access inheritance (defaults to existing Public behavior)
“private” = only explicit grants, “project” = project members, “team” = team members,
“org” = org members, “public” = anyone (same as Public=true) (optional)
active_version_idstring
kindstring“property”, “knowledge”, “social”, “network”, etc.
configstringJSON config for graph-specific settings
schema_configstringNode/edge type definitions
versions[]GraphVersion

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}/activate

POST /api/v1/graphs/{id}/versions/{version_id}/duplicate

Create duplicate Graph Version

Duplicate a graph version

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Response

Type: GraphVersion

FieldTypeDescription
iduuid.UUID
created_attime.Time
updated_attime.Time
namestring
descriptionstring
user_idstring
graph_iduuid.UUID
versionstring
version_numberuint
space_namestringDGraph namespace identifier (predicate prefix)
schemastringJSON schema definition
node_countint64
edge_countint64
configstringJSON config for version-specific settings
metrics[]GraphMetricMetrics and statistics

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}/duplicate

GET /api/v1/graphs/{id}/versions/{version_id}/export

Get export Graph Data

exportGraphData exports graph data in JSON, GraphML, or GEXF format

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Example

curl -X GET \
  -H "Authorization: Bearer <token>" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}/export

POST /api/v1/graphs/{id}/versions/{version_id}/import

Create import Graph Data

importGraphData imports graph data from JSON, GraphML, or GEXF format

Parameters

NameInTypeRequired
idpathstringtrue
version_idpathstringtrue

Example

curl -X POST \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  https://api.seeme.ai/api/v1/graphs/{id}/versions/{version_id}/import