Skip to content

Depot mdmosupdates

Registers the OS update routes.

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

GETmdm:readtenant facehosteditmspremoteIdempotent

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

Source: [object Object]

listMdmOsReleases lists the OS releases OS update targets are chosen from, newest first.

?platform= narrows to one platform.

NameInTypeRequiredDescription
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
platformquerystringNo
StatusBodyDescription
200application/json, PagedResultOsReleaseViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold mdm:read.
500application/problem+json, ProblemDetailsThe request failed.
503application/problem+json, ProblemDetailsThe OS release list is not available on this server.

200 response body

FieldTypeDescription
itemsrequiredarray of OsReleaseView
items[].buildrequiredstring
items[].expiresAtstring (date-time) or null
items[].fetchedAtrequiredstring (date-time)
items[].platformrequiredstring
items[].releasedAtstring (date-time) or null
items[].sourcerequiredstring
items[].supportedDevicesrequiredarray of string
items[].versionrequiredstring
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/mdm/os-releases?page=0&pageSize=0&platform=<platform>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GETmdm:readtenant facehosteditmspremoteIdempotent

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

Source: [object Object]

getMdmOsUpdateReport reports how many devices per platform are on their OS update target, pending (with deadlines) or unable to reach it (with reasons).

?state= and ?platform= (comma-separated) filter the device list; the totals always cover every device.

NameInTypeRequiredDescription
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
platformquerystring, one of android, darwin, ios, tvos, windowsNoComma-separated set. An unrecognised value is refused.
statequerystring, one of cannot_reach, not_applicable, on_target, pendingNoComma-separated set. An unrecognised value is refused.
StatusBodyDescription
200application/json, OsUpdateReportViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold mdm:read.
500application/problem+json, ProblemDetailsNo client context in request.

200 response body

FieldTypeDescription
itemsrequiredarray of OsUpdateDeviceView
items[].agentIdrequiredstring
items[].currentVersionstring or null
items[].deadlineAtstring (date-time) or null
items[].evaluatedAtrequiredstring (date-time)
items[].hostnamerequiredstring
items[].overduerequiredboolean
items[].platformrequiredstring
items[].reasonMdmReasonView

mdmReasonView is the wire Reason (contract 7.3).

items[].reason.fixrequiredstring
items[].reason.keyrequiredstring
items[].reason.plainrequiredstring
items[].reason.retryablerequiredboolean
items[].reasonCodestring or null
items[].staterequiredstring
items[].targetVersionstring or null
pagerequiredinteger
pageSizerequiredinteger
platformsrequiredarray of OsUpdatePlatformView
platforms[].cannotReachrequiredinteger
platforms[].notApplicablerequiredinteger
platforms[].onTargetrequiredinteger
platforms[].overduerequiredinteger
platforms[].pendingrequiredinteger
platforms[].platformrequiredstring
platforms[].reasonsrequiredarray of OsUpdateReasonCount
platforms[].reasons[].countrequiredinteger
platforms[].reasons[].reasonMdmReasonView

mdmReasonView is the wire Reason (contract 7.3).

platforms[].reasons[].reason.fixrequiredstring
platforms[].reasons[].reason.keyrequiredstring
platforms[].reasons[].reason.plainrequiredstring
platforms[].reasons[].reason.retryablerequiredboolean
platforms[].reasons[].reasonCoderequiredstring
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/mdm/os-updates/report?page=0&pageSize=0&platform=android&state=cannot_reach' \
-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.