Skip to content

Depot portaldirsync admin

Registers the directory credential 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.

GET /api/v1/clients/{clientID}/portal/dir-sync-credentials

Section titled “GET /api/v1/clients/{clientID}/portal/dir-sync-credentials”

GETclientportal:managemsp facemspIdempotent

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

Source: [object Object]

listDirSyncCredentials says which directory credentials the client has stored.

NameInTypeRequiredDescription
clientIDpathstringYes
StatusBodyDescription
200application/json, array of PortalDirSyncCredentialViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold clientportal:manage.
404application/problem+json, ProblemDetailsNo client matches that id.
500application/problem+json, ProblemDetailsCould not read the client’s portal settings.

200 response body

FieldTypeDescription
[].adminSubjectstring or null
[].clientRefstring or null
[].configuredrequiredboolean
[].providerrequiredstring
[].tenantRefstring or null
[].updatedAtstring (date-time) or null
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/clients/<clientID>/portal/dir-sync-credentials' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUT /api/v1/clients/{clientID}/portal/dir-sync-credentials/{provider}

Section titled “PUT /api/v1/clients/{clientID}/portal/dir-sync-credentials/{provider}”

PUTclientportal:managemsp facemspIdempotent

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

Source: [object Object]

putDirSyncCredential stores (or replaces) the client’s directory credential for one provider.

The secret is never returned.

NameInTypeRequiredDescription
clientIDpathstringYes
providerpathstringYes

Required, sent as application/json.

FieldTypeDescription
adminSubjectstring or null
clientRefstring or null
credentialrequiredstring
tenantRefstring or null
StatusBodyDescription
200application/json, PortalDirSyncCredentialViewSuccess.
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 clientportal:manage.
404application/problem+json, ProblemDetailsNo client matches that id.
500application/problem+json, ProblemDetailsCould not read the client’s portal settings.

200 response body

FieldTypeDescription
adminSubjectstring or null
clientRefstring or null
configuredrequiredboolean
providerrequiredstring
tenantRefstring or null
updatedAtstring (date-time) or null
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 PUT 'https://depot.example.com/api/v1/clients/<clientID>/portal/dir-sync-credentials/<provider>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"adminSubject": "string",
"clientRef": "string",
"credential": "string",
"tenantRef": "string"
}'

DELETE /api/v1/clients/{clientID}/portal/dir-sync-credentials/{provider}

Section titled “DELETE /api/v1/clients/{clientID}/portal/dir-sync-credentials/{provider}”

DELETEclientportal:managemsp facemspIdempotent

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

Source: [object Object]

deleteDirSyncCredential removes the client’s directory credential for a provider.

NameInTypeRequiredDescription
clientIDpathstringYes
providerpathstringYes
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold clientportal:manage.
404application/problem+json, ProblemDetailsNo client matches that id.
500application/problem+json, ProblemDetailsCould not read the client’s portal settings.
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/clients/<clientID>/portal/dir-sync-credentials/<provider>' \
-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.