Skip to content

Depot network diagrams

Registers the documented diagram and rack routes on the tenant API.

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

List diagrams

NameInTypeRequiredDescription
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
qquerystringNo
sitequerystringNo
viewquerystringNo
StatusBodyDescription
200application/json, PagedResultNetworkDiagramViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
itemsrequiredarray of NetworkDiagramView
items[].createdAtrequiredstring (date-time)
items[].createdByrequiredstring
items[].currentRevisionrequiredinteger
items[].driftAlertThresholdnumber or null

double.

items[].driftCheckedAtstring (date-time) or null
items[].driftScorenumber or null

double.

items[].idrequiredstring
items[].openProposalsrequiredinteger
items[].rackIdrequiredstring
items[].siteIdrequiredstring
items[].titlerequiredstring
items[].updatedAtrequiredstring (date-time)
items[].viewrequiredstring
items[].visibleToClientrequiredboolean
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams?page=0&pageSize=0&q=<q>&site=<site>&view=<view>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTnetwork_map:edittenant facehosteditmspremote

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

createDiagram makes a documented diagram from the live map, an upload, a Pioneer create_diagram call, or nothing (17.2).

Required, sent as multipart/form-data.

The body is object.

StatusBodyDescription
201application/json, NetworkDiagramViewCreated.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo site matches that id.
422application/problem+json, ProblemDetailsThe file is not a .drawio diagram Outpost can keep.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

201 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
createdByrequiredstring
currentRevisionrequiredinteger
driftAlertThresholdnumber or null

double.

driftCheckedAtstring (date-time) or null
driftScorenumber or null

double.

idrequiredstring
openProposalsrequiredinteger
rackIdrequiredstring
siteIdrequiredstring
titlerequiredstring
updatedAtrequiredstring (date-time)
viewrequiredstring
visibleToClientrequiredboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/network-diagrams' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: multipart/form-data' \
-b 'outpost_console=<console-session>' \
--data '{}'

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Get diagram

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
StatusBodyDescription
200application/json, NetworkDiagramViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
createdByrequiredstring
currentRevisionrequiredinteger
driftAlertThresholdnumber or null

double.

driftCheckedAtstring (date-time) or null
driftScorenumber or null

double.

idrequiredstring
openProposalsrequiredinteger
rackIdrequiredstring
siteIdrequiredstring
titlerequiredstring
updatedAtrequiredstring (date-time)
viewrequiredstring
visibleToClientrequiredboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PATCH /api/v1/network-diagrams/{diagramId}

Section titled “PATCH /api/v1/network-diagrams/{diagramId}”

PATCHnetwork_map:edittenant facehosteditmspremote

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Patch diagram

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
driftAlertThresholdrequiredany

Arbitrary JSON.

siteIdstring or null
titlestring or null
visibleToClientboolean or null
StatusBodyDescription
200application/json, NetworkDiagramViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
createdByrequiredstring
currentRevisionrequiredinteger
driftAlertThresholdnumber or null

double.

driftCheckedAtstring (date-time) or null
driftScorenumber or null

double.

idrequiredstring
openProposalsrequiredinteger
rackIdrequiredstring
siteIdrequiredstring
titlerequiredstring
updatedAtrequiredstring (date-time)
viewrequiredstring
visibleToClientrequiredboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X PATCH 'https://depot.example.com/api/v1/network-diagrams/<diagramId>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"driftAlertThreshold": "string",
"siteId": "string",
"title": "string",
"visibleToClient": false
}'

DELETE /api/v1/network-diagrams/{diagramId}

Section titled “DELETE /api/v1/network-diagrams/{diagramId}”

DELETEnetwork_map:edittenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Delete diagram

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X DELETE 'https://depot.example.com/api/v1/network-diagrams/<diagramId>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/content

Section titled “GET /api/v1/network-diagrams/{diagramId}/content”

GETdiscovery:readtenant facehosteditmspremoteIdempotentNot fully resolved

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

What this page does not know
  • response

These are parts of the route the extractor could not read from the source. Everything else on this page came straight from it.

Source: [object Object]

diagramContent answers a revision’s .drawio XML; live=1 lays the live map’s facts over its linked objects (17.2).

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
livequerystringNo
revisionquerystringNo
StatusBodyDescription
200NoneSuccess. The body shape was not resolved; see x-outpost-unresolved.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
422application/problem+json, ProblemDetailsThis revision is not a diagram Outpost can read.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/content?live=<live>&revision=<revision>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/diff

Section titled “GET /api/v1/network-diagrams/{diagramId}/diff”

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

diffRevisions compares two revisions’ drawings as section 6 compares two snapshots.

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
fromquerystringNo
toquerystringNo
StatusBodyDescription
200application/json, DiffViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
422application/problem+json, ProblemDetailsA revision is not a diagram Outpost can read.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
changesrequiredarray of DiffChange
changes[].afterrequiredstring
changes[].beforerequiredstring
changes[].fieldrequiredstring
changes[].labelrequiredstring
changes[].nodeIdrequiredstring
edgesAddedrequiredarray of DiffEdge
edgesAdded[].fromrequiredstring
edgesAdded[].fromPortrequiredstring
edgesAdded[].idrequiredstring
edgesAdded[].torequiredstring
edgesAdded[].toPortrequiredstring
edgesMovedrequiredarray of DiffMove
edgesMoved[].afterrequiredDiffAttach

DiffAttach is where a host was plugged in.

edgesMoved[].after.peerrequiredstring
edgesMoved[].after.peerLabelrequiredstring
edgesMoved[].after.portrequiredstring
edgesMoved[].beforerequiredDiffAttach

DiffAttach is where a host was plugged in.

edgesMoved[].before.peerrequiredstring
edgesMoved[].before.peerLabelrequiredstring
edgesMoved[].before.portrequiredstring
edgesMoved[].labelrequiredstring
edgesMoved[].nodeIdrequiredstring
edgesRemovedrequiredarray of DiffEdge
edgesRemoved[].fromrequiredstring
edgesRemoved[].fromPortrequiredstring
edgesRemoved[].idrequiredstring
edgesRemoved[].torequiredstring
edgesRemoved[].toPortrequiredstring
fromrequiredDiffEnd

DiffEnd names one side of a diff.

from.idrequiredstring
from.takenAtrequiredstring
fromPreviewrequiredstring
nodesAddedrequiredarray of DiffNode
nodesAdded[].idrequiredstring
nodesAdded[].kindrequiredstring
nodesAdded[].labelrequiredstring
nodesRemovedrequiredarray of DiffNode
nodesRemoved[].idrequiredstring
nodesRemoved[].kindrequiredstring
nodesRemoved[].labelrequiredstring
torequiredDiffEnd

DiffEnd names one side of a diff.

to.idrequiredstring
to.takenAtrequiredstring
toPreviewrequiredstring
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/diff?from=<from>&to=<to>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/drift

Section titled “GET /api/v1/network-diagrams/{diagramId}/drift”

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

diagramDrift answers the drift job’s last word on a diagram: its score, when it was checked, and the open proposals (get_diagram_drift, 17.5).

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
StatusBodyDescription
200application/json, objectSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/drift' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/export

Section titled “GET /api/v1/network-diagrams/{diagramId}/export”

GETdiscovery:readtenant facehosteditmspremoteIdempotentdownloadNot fully resolved

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

What this page does not know
  • response

These are parts of the route the extractor could not read from the source. Everything else on this page came straight from it.

Source: [object Object]

exportDiagram downloads a revision: the .drawio as drawn, its previews as the PNG and SVG (and the PDF, the PNG on the profile’s paper), or a .vsdx from the XML (18.4).

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
formatquerystringNo
revisionquerystringNo
StatusBodyDescription
200application/octet-stream, string (binary)Success. The body shape was not resolved; see x-outpost-unresolved.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/export?format=<format>&revision=<revision>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/proposals

Section titled “GET /api/v1/network-diagrams/{diagramId}/proposals”

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

List proposals

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
statequerystringNo
StatusBodyDescription
200application/json, PagedResultProposalViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
itemsrequiredarray of ProposalView
items[].createdAtrequiredstring (date-time)
items[].decidedAtstring (date-time) or null
items[].decidedBystring or null
items[].idrequiredstring
items[].kindrequiredstring
items[].payloadrequiredobject
items[].staterequiredstring
items[].subjectKeyrequiredstring
items[].summaryrequiredstring
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/proposals?page=0&pageSize=0&state=<state>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POST /api/v1/network-diagrams/{diagramId}/proposals/accept

Section titled “POST /api/v1/network-diagrams/{diagramId}/proposals/accept”

POSTnetwork_map:edittenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

acceptProposals draws the accepted proposals into the diagram as a new revision noted “Accepted N changes” (17.2).

A link whose ends are not on the diagram is left open.

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
idsrequiredarray of string
StatusBodyDescription
200application/json, objectSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsOne or more of those proposals is not open any more. Reload the queue.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/proposals/accept' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"ids": [
"string"
]
}'

POST /api/v1/network-diagrams/{diagramId}/proposals/reject

Section titled “POST /api/v1/network-diagrams/{diagramId}/proposals/reject”

POSTnetwork_map:edittenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Reject proposals

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
idsrequiredarray of string
StatusBodyDescription
200application/json, objectSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsOne or more of those proposals is not open any more. Reload the queue.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X POST 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/proposals/reject' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"ids": [
"string"
]
}'

GET /api/v1/network-diagrams/{diagramId}/revisions

Section titled “GET /api/v1/network-diagrams/{diagramId}/revisions”

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

List revisions

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
StatusBodyDescription
200application/json, PagedResultRevisionViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
itemsrequiredarray of RevisionView
items[].authorrequiredstring
items[].authorIdstring or null
items[].createdAtrequiredstring (date-time)
items[].currentrequiredboolean
items[].hasPngrequiredboolean
items[].hasSvgrequiredboolean
items[].hashrequiredstring
items[].noterequiredstring
items[].numberrequiredinteger
items[].unchangedboolean
pagerequiredinteger
pageSizerequiredinteger
totalrequiredinteger
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/revisions?page=0&pageSize=0' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POST /api/v1/network-diagrams/{diagramId}/revisions

Section titled “POST /api/v1/network-diagrams/{diagramId}/revisions”

POSTnetwork_map:edittenant facehosteditmspremote

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

saveRevision saves what the editor sends as the next revision; the same XML as the current one is a 200 that changes nothing (17.2).

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
noterequiredstring
previewPngrequiredstring
previewSvgrequiredstring
xmlrequiredstring
StatusBodyDescription
200application/json, RevisionViewSuccess.
201application/json, RevisionViewCreated.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
422application/problem+json, ProblemDetailsThe diagram is too large: at most 5,000 shapes.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
authorrequiredstring
authorIdstring or null
createdAtrequiredstring (date-time)
currentrequiredboolean
hasPngrequiredboolean
hasSvgrequiredboolean
hashrequiredstring
noterequiredstring
numberrequiredinteger
unchangedboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/revisions' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"note": "string",
"previewPng": "string",
"previewSvg": "string",
"xml": "string"
}'

GET /api/v1/network-diagrams/{diagramId}/revisions/{number}

Section titled “GET /api/v1/network-diagrams/{diagramId}/revisions/{number}”

GETdiscovery:readtenant facehosteditmspremoteIdempotent

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

Get revision

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
numberpathstringYes
StatusBodyDescription
200application/json, RevisionViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
authorrequiredstring
authorIdstring or null
createdAtrequiredstring (date-time)
currentrequiredboolean
hasPngrequiredboolean
hasSvgrequiredboolean
hashrequiredstring
noterequiredstring
numberrequiredinteger
unchangedboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/revisions/<number>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/network-diagrams/{diagramId}/revisions/{number}/preview

Section titled “GET /api/v1/network-diagrams/{diagramId}/revisions/{number}/preview”

GETdiscovery:readtenant facehosteditmspremoteIdempotentdownloadNot fully resolved

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

What this page does not know
  • response

These are parts of the route the extractor could not read from the source. Everything else on this page came straight from it.

Source: [object Object]

revisionPreview answers a revision’s stored PNG or SVG.

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
numberpathstringYes
formatquerystringNo
StatusBodyDescription
200application/octet-stream, string (binary)Success. The body shape was not resolved; see x-outpost-unresolved.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold discovery:read.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/revisions/<number>/preview?format=<format>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POST /api/v1/network-diagrams/{diagramId}/revisions/{number}/restore

Section titled “POST /api/v1/network-diagrams/{diagramId}/revisions/{number}/restore”

POSTnetwork_map:edittenant facehosteditmspremote

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

restoreRevision copies an old revision forward as the newest.

NameInTypeRequiredDescription
diagramIdpathstringYesA uuid.
numberpathstringYes
StatusBodyDescription
200application/json, RevisionViewSuccess.
201application/json, RevisionViewCreated.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold network_map:edit.
404application/problem+json, ProblemDetailsNo resource matches that id.
500application/problem+json, ProblemDetailsNo client store in request context.
503application/problem+json, ProblemDetailsNetwork diagrams are not available on this Depot.

200 response body

FieldTypeDescription
authorrequiredstring
authorIdstring or null
createdAtrequiredstring (date-time)
currentrequiredboolean
hasPngrequiredboolean
hasSvgrequiredboolean
hashrequiredstring
noterequiredstring
numberrequiredinteger
unchangedboolean
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
curl -X POST 'https://depot.example.com/api/v1/network-diagrams/<diagramId>/revisions/<number>/restore' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.