Skip to content

Depot agent cert grace

Registers GET|PUT /api/v1/organization/agent-cert-grace (C7).

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

GETclient:readshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Get agent cert grace

StatusBodyDescription
200application/json, AgentCertGraceViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold client:read.
404application/problem+json, ProblemDetailsNo such organization.
500application/problem+json, ProblemDetailsNo client store for this organization.

200 response body

FieldTypeDescription
defaultGraceMonthsrequiredinteger
effectiveGraceMonthsrequiredinteger
graceMonthsinteger or null
maxGraceMonthsrequiredinteger
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/organization/agent-cert-grace' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUTclient:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

putAgentCertGrace takes {“graceMonths”: int|null}; null returns to the default, 0 turns grace off.

The key is required (C12): an empty body or a misspelled key must not silently reset the grace to the default, so a missing key, an unknown key, a non-integer or anything outside 0..36 is a 422.

Required, sent as application/json.

The body is object.

StatusBodyDescription
200application/json, AgentCertGraceViewSuccess.
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 client:manage.
404application/problem+json, ProblemDetailsNo such organization.
500application/problem+json, ProblemDetailsNo client store for this organization.

200 response body

FieldTypeDescription
defaultGraceMonthsrequiredinteger
effectiveGraceMonthsrequiredinteger
graceMonthsinteger or null
maxGraceMonthsrequiredinteger
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/organization/agent-cert-grace' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"key": "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.