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
200OKGraphViewList
401UnauthorizedError
403ForbiddenError

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)
pinnedPositionsobject | null
viewSpecobject | null

Responses

StatusDescriptionSchema
201CreatedGraphView
401UnauthorizedError
403ForbiddenError

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
200OKDefaultGraphView
401UnauthorizedError
403ForbiddenError

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
200OKGraphView
401UnauthorizedError
403ForbiddenError
404Not 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
pinnedPositionsobject | null
viewSpecobject | null

Responses

StatusDescriptionSchema
200OKGraphView
401UnauthorizedError
403ForbiddenError
404Not 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
200OKDeletedById
401UnauthorizedError
403ForbiddenError
404Not 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
200OKGraphView
401UnauthorizedError
403ForbiddenError
404Not FoundError

Schemas

DefaultGraphView

FieldTypeDescription
idstring(uuid) | null(required)
orgIdstring(required)
projectIdstring(required)
scopeuser | project(required)
ownerUserIdstring | null(required)
namestring(required)
isDefaultboolean(required)
pinnedPositionsobject | null(required)
viewSpecobject | null(required)
createdAtstring | string
updatedAtstring | string

DeletedById

FieldTypeDescription
deletedtrue(required)
idstring(required)

Error

FieldTypeDescription
errorstring(required)
codestring

GraphView

FieldTypeDescription
idstring(uuid)(required)
orgIdstring(required)
projectIdstring(required)
scopeuser | project(required)
ownerUserIdstring | null(required)
namestring(required)
isDefaultboolean(required)
pinnedPositionsobject | null(required)
viewSpecobject | null(required)
createdAtstring | string(required)
updatedAtstring | string(required)

GraphViewList

Type: GraphView[]