Skip to content

Depot profilepreview

Registers POST /api/v1/profiles/preview.

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

POSTprofile:readtenant facehosteditmspremote

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

Source: [object Object]

previewProfiles shows what every endpoint would enforce if the proposed profile edits were saved, against what it enforces now.

Required, sent as application/json.

FieldTypeDescription
agentIdsrequiredarray of string
profilesrequiredarray of PreviewProfile
profiles[].assignmentsarray of PreviewAssignment or null
profiles[].assignments[].mandatoryrequiredboolean
profiles[].assignments[].rankinteger or null
profiles[].assignments[].scopeIdrequiredstring
profiles[].assignments[].scopeTyperequiredstring
profiles[].publicIdstring or null
profiles[].settingsarray of PreviewSetting or null
profiles[].settings[].isSetboolean or null
profiles[].settings[].mandatoryrequiredboolean
profiles[].settings[].osFamilyrequiredstring
profiles[].settings[].settingKeyrequiredstring
profiles[].settings[].valuerequiredany

Arbitrary JSON.

StatusBodyDescription
200application/json, PreviewResultViewSuccess.
400application/problem+json, ProblemDetailsThe request body is not valid JSON.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold profile:read.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
endpointsrequiredarray of PreviewEndpointView
endpoints[].afterrequiredobject
endpoints[].agentIdrequiredstring
endpoints[].beforerequiredobject
endpoints[].changedKeysrequiredarray of string
endpoints[].fallbacksrequiredobject
endpoints[].hostnamerequiredstring
endpoints[].issuesrequiredarray of EffectiveIssueView
endpoints[].issues[].detailstring
endpoints[].issues[].keystring
endpoints[].issues[].kindrequiredstring
endpoints[].issues[].profileIdsarray of string
endpoints[].renderIssuesrequiredarray of RenderIssueView
endpoints[].renderIssues[].coderequiredstring
endpoints[].renderIssues[].detailrequiredstring
endpoints[].renderIssues[].keyrequiredstring
evaluatedrequiredinteger
truncatedrequiredboolean
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/profiles/preview' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"agentIds": [
"string"
],
"profiles": [
{
"assignments": [
{
"mandatory": false,
"rank": 0,
"scopeId": "string",
"scopeType": "string"
}
],
"publicId": "string",
"settings": [
{
"isSet": false,
"mandatory": false,
"osFamily": "string",
"settingKey": "string",
"value": "string"
}
]
}
]
}'

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.