GraphViews


GET /{o}/{p}/graph-views

List graph views

List project-scope saved views plus the caller's own personal views.

Auth: Bearer token required · Permission: graph:read

Path parameters

NameTypeDescription
ostring
pstring

Responses

StatusDescriptionSchema
200Graph viewsGraphViewList

POST /{o}/{p}/graph-views

Create a graph view

Create a user- or project-scope saved view. Project-scope writes require admin/owner (graph:manage).

Auth: Bearer token required · Permission: graph:write

Path parameters

NameTypeDescription
ostring
pstring

Request body (application/json)

FieldTypeDescription
namestring(required)
scopeuser | project(required)
configobject(required)
pinnedPositionsobject,null

Responses

StatusDescriptionSchema
201Created graph viewGraphView
401User session required for a personal viewError
403Project-scope view requires admin/ownerError

GET /{o}/{p}/graph-views/default

Get the default graph view

Resolves the caller's default view: personal default → project default → synthetic Fleet fallback.

Auth: Bearer token required · Permission: graph:read

Path parameters

NameTypeDescription
ostring
pstring

Responses

StatusDescriptionSchema
200The default graph viewGraphView

GET /{o}/{p}/graph-views/{id}

Get a graph view by id

Auth: Bearer token required · Permission: graph:read

Path parameters

NameTypeDescription
ostring
pstring
idstring

Responses

StatusDescriptionSchema
200The graph viewGraphView
404Graph view not foundError

PUT /{o}/{p}/graph-views/{id}

Update a graph view

Auth: Bearer token required · Permission: graph:write

Path parameters

NameTypeDescription
ostring
pstring
idstring

Request body (application/json)

FieldTypeDescription
namestring
configobject
pinnedPositionsobject,null

Responses

StatusDescriptionSchema
200Updated graph viewGraphView
403Not the view owner / requires adminError
404Graph view not foundError

DELETE /{o}/{p}/graph-views/{id}

Delete a graph view

Auth: Bearer token required · Permission: graph:write

Path parameters

NameTypeDescription
ostring
pstring
idstring

Responses

StatusDescriptionSchema
200Deletion resultDeletedById
403Not the view owner / requires adminError
404Graph view not foundError

PATCH /{o}/{p}/graph-views/{id}/default

Set a graph view as the default

Atomically clear the prior default within the view's (scope, owner) group and set this one.

Auth: Bearer token required · Permission: graph:write

Path parameters

NameTypeDescription
ostring
pstring
idstring

Responses

StatusDescriptionSchema
200Updated default graph viewGraphView
403Not the view owner / requires adminError
404Graph view not foundError

Schemas

DeletedById

FieldTypeDescription
deletedtrue(required)
idstring(required)

Error

FieldTypeDescription
errorstring(required)
codestring

GraphView

FieldTypeDescription
idstring,null(uuid)(required)
orgIdstring(required)
projectIdstring(required)
scopeuser | project(required)
ownerUserIdstring,null(required)
namestring(required)
isDefaultboolean(required)
configobject(required)
pinnedPositionsobject,null(required)

GraphViewList

Type: GraphView[]