Skip to content

Depot inventoryrefresh

Registers the on-demand inventory sweep.

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

POST /api/v1/endpoints/{agentID}/inventory/refresh

Section titled “POST /api/v1/endpoints/{agentID}/inventory/refresh”

POSTendpoint:readtenant facehosteditmspremoteIdempotent

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

Source: [object Object]

requestInventoryRefresh asks one connected agent to collect and push a full inventory now.

It returns 202: the sweep takes about fifteen seconds and the result arrives over the telemetry stream, not in this response, so the caller watches the endpoint’s inventoryUpdatedAt to learn when it landed.

NameInTypeRequiredDescription
agentIDpathstringYes
StatusBodyDescription
202NoneAccepted.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold endpoint:read.
404application/problem+json, ProblemDetailsEndpoint not found.
409application/problem+json, ProblemDetailsThis endpoint is not connected, so it cannot be asked for a new inventory right now.
500application/problem+json, ProblemDetailsNo client context in request.
503application/problem+json, ProblemDetailsThe telemetry dispatcher is not available.
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/endpoints/<agentID>/inventory/refresh' \
-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.