Skip to content

Depot sla

Registers the SLA routes on mux.

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

DELETEsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Remove schedule holiday

NameInTypeRequiredDescription
holidayIDpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.
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/sla/holidays/<holidayID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

List sla policies

NameInTypeRequiredDescription
dirquerystring, one of asc, descNoSort direction.
enabledquerystringNo
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
qquerystringNoFree-text search term.
sortquerystring, one of created, enabled, name, order, updatedNoSort key.
StatusBodyDescription
200application/json, PagedResultSlaPolicyViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
itemsrequiredarray of SlaPolicyView
items[].conditionrequiredany

Arbitrary JSON.

items[].createdAtrequiredstring (date-time)
items[].descriptionstring
items[].enabledrequiredboolean
items[].isDefaultrequiredboolean
items[].namerequiredstring
items[].publicIdrequiredstring
items[].runOrderrequiredinteger
items[].scheduleIdstring
items[].updatedAtrequiredstring (date-time)
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/sla/policies?dir=asc&enabled=<enabled>&page=0&pageSize=0&q=<q>&sort=created' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTsla:manageshared facehosteditmspremote

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

Source: [object Object]

Create sla policy

Required, sent as application/json.

FieldTypeDescription
conditionany

Arbitrary JSON.

descriptionstring or null
enabledboolean or null
isDefaultboolean or null
namestring or null
runOrderinteger or null
scheduleIdstring or null
StatusBodyDescription
201application/json, SlaPolicyViewCreated.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

201 response body

FieldTypeDescription
conditionrequiredany

Arbitrary JSON.

createdAtrequiredstring (date-time)
descriptionstring
enabledrequiredboolean
isDefaultrequiredboolean
namerequiredstring
publicIdrequiredstring
runOrderrequiredinteger
scheduleIdstring
updatedAtrequiredstring (date-time)
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/sla/policies' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"condition": "string",
"description": "string",
"enabled": false,
"isDefault": false,
"name": "string",
"runOrder": 0,
"scheduleId": "string"
}'

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Get sla policy

NameInTypeRequiredDescription
policyIDpathstringYesA uuid.
StatusBodyDescription
200application/json, SlaPolicyViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
conditionrequiredany

Arbitrary JSON.

createdAtrequiredstring (date-time)
descriptionstring
enabledrequiredboolean
isDefaultrequiredboolean
namerequiredstring
publicIdrequiredstring
runOrderrequiredinteger
scheduleIdstring
updatedAtrequiredstring (date-time)
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/sla/policies/<policyID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PATCHsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Patch sla policy

NameInTypeRequiredDescription
policyIDpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
conditionany

Arbitrary JSON.

descriptionstring or null
enabledboolean or null
isDefaultboolean or null
namestring or null
runOrderinteger or null
scheduleIdstring or null
StatusBodyDescription
200application/json, SlaPolicyViewSuccess.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
conditionrequiredany

Arbitrary JSON.

createdAtrequiredstring (date-time)
descriptionstring
enabledrequiredboolean
isDefaultrequiredboolean
namerequiredstring
publicIdrequiredstring
runOrderrequiredinteger
scheduleIdstring
updatedAtrequiredstring (date-time)
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 PATCH 'https://depot.example.com/api/v1/sla/policies/<policyID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"condition": "string",
"description": "string",
"enabled": false,
"isDefault": false,
"name": "string",
"runOrder": 0,
"scheduleId": "string"
}'

DELETEsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Delete sla policy

NameInTypeRequiredDescription
policyIDpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.
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/sla/policies/<policyID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/sla/policies/{policyID}/targets

Section titled “GET /api/v1/sla/policies/{policyID}/targets”

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

List sla targets

NameInTypeRequiredDescription
policyIDpathstringYesA uuid.
StatusBodyDescription
200application/json, PagedResultSlaTargetViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
itemsrequiredarray of SlaTargetView
items[].metricrequiredstring
items[].policyIdrequiredstring
items[].prioritystring
items[].publicIdrequiredstring
items[].targetMinutesrequiredinteger
items[].warnPercentrequiredinteger
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/sla/policies/<policyID>/targets' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUT /api/v1/sla/policies/{policyID}/targets

Section titled “PUT /api/v1/sla/policies/{policyID}/targets”

PUTsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Put sla target

NameInTypeRequiredDescription
policyIDpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
metricrequiredstring
priorityrequiredstring
targetMinutesrequiredinteger
warnPercentrequiredinteger
StatusBodyDescription
200application/json, SlaTargetViewSuccess.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
metricrequiredstring
policyIdrequiredstring
prioritystring
publicIdrequiredstring
targetMinutesrequiredinteger
warnPercentrequiredinteger
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/sla/policies/<policyID>/targets' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"metric": "string",
"priority": "string",
"targetMinutes": 0,
"warnPercent": 0
}'

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

List business schedules

NameInTypeRequiredDescription
dirquerystring, one of asc, descNoSort direction.
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
qquerystringNoFree-text search term.
sortquerystring, one of created, name, timezone, updatedNoSort key.
StatusBodyDescription
200application/json, PagedResultBusinessScheduleViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
itemsrequiredarray of BusinessScheduleView
items[].createdAtrequiredstring (date-time)
items[].descriptionstring
items[].isDefaultrequiredboolean
items[].isSystemrequiredboolean
items[].namerequiredstring
items[].publicIdrequiredstring
items[].timeZonerequiredstring
items[].updatedAtrequiredstring (date-time)
items[].weekrequiredarray of array of ScheduleWindowView
items[].week[][].endMinuterequiredinteger
items[].week[][].startMinuterequiredinteger
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/sla/schedules?dir=asc&page=0&pageSize=0&q=<q>&sort=created' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POSTsla:manageshared facehosteditmspremote

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

Source: [object Object]

Create business schedule

Required, sent as application/json.

FieldTypeDescription
descriptionstring or null
isDefaultboolean or null
namestring or null
timeZonestring or null
weekarray of array of ScheduleWindowView or null
week[][].endMinuterequiredinteger
week[][].startMinuterequiredinteger
StatusBodyDescription
201application/json, BusinessScheduleViewCreated.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

201 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
descriptionstring
isDefaultrequiredboolean
isSystemrequiredboolean
namerequiredstring
publicIdrequiredstring
timeZonerequiredstring
updatedAtrequiredstring (date-time)
weekrequiredarray of array of ScheduleWindowView
week[][].endMinuterequiredinteger
week[][].startMinuterequiredinteger
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/sla/schedules' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"description": "string",
"isDefault": false,
"name": "string",
"timeZone": "string",
"week": [
[
{
"endMinute": 0,
"startMinute": 0
}
]
]
}'

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Get business schedule

NameInTypeRequiredDescription
scheduleIDpathstringYesA uuid.
StatusBodyDescription
200application/json, BusinessScheduleViewSuccess.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
descriptionstring
isDefaultrequiredboolean
isSystemrequiredboolean
namerequiredstring
publicIdrequiredstring
timeZonerequiredstring
updatedAtrequiredstring (date-time)
weekrequiredarray of array of ScheduleWindowView
week[][].endMinuterequiredinteger
week[][].startMinuterequiredinteger
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/sla/schedules/<scheduleID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PATCHsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Patch business schedule

NameInTypeRequiredDescription
scheduleIDpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
descriptionstring or null
isDefaultboolean or null
namestring or null
timeZonestring or null
weekarray of array of ScheduleWindowView or null
week[][].endMinuterequiredinteger
week[][].startMinuterequiredinteger
StatusBodyDescription
200application/json, BusinessScheduleViewSuccess.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
createdAtrequiredstring (date-time)
descriptionstring
isDefaultrequiredboolean
isSystemrequiredboolean
namerequiredstring
publicIdrequiredstring
timeZonerequiredstring
updatedAtrequiredstring (date-time)
weekrequiredarray of array of ScheduleWindowView
week[][].endMinuterequiredinteger
week[][].startMinuterequiredinteger
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 PATCH 'https://depot.example.com/api/v1/sla/schedules/<scheduleID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"description": "string",
"isDefault": false,
"name": "string",
"timeZone": "string",
"week": [
[
{
"endMinute": 0,
"startMinute": 0
}
]
]
}'

DELETEsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Delete business schedule

NameInTypeRequiredDescription
scheduleIDpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.
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/sla/schedules/<scheduleID>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

GET /api/v1/sla/schedules/{scheduleID}/holidays

Section titled “GET /api/v1/sla/schedules/{scheduleID}/holidays”

GETsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

List schedule holidays

NameInTypeRequiredDescription
scheduleIDpathstringYesA uuid.
dirquerystring, one of asc, descNoSort direction.
pagequeryintegerNoOne-based page number. Defaults to 1.
pageSizequeryintegerNoRows per page, 1 to 200. Defaults to 50.
qquerystringNoFree-text search term.
sortquerystring, one of date, nameNoSort key.
StatusBodyDescription
200application/json, PagedResultScheduleHolidayViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

200 response body

FieldTypeDescription
itemsrequiredarray of ScheduleHolidayView
items[].dayrequiredinteger
items[].intervalsrequiredarray of ScheduleWindowView
items[].intervals[].endMinuterequiredinteger
items[].intervals[].startMinuterequiredinteger
items[].monthrequiredinteger
items[].namerequiredstring
items[].publicIdrequiredstring
items[].recursrequiredboolean
items[].scheduleIdrequiredstring
items[].yearinteger
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/sla/schedules/<scheduleID>/holidays?dir=asc&page=0&pageSize=0&q=<q>&sort=date' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

POST /api/v1/sla/schedules/{scheduleID}/holidays

Section titled “POST /api/v1/sla/schedules/{scheduleID}/holidays”

POSTsla:manageshared facehosteditmspremote

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

Source: [object Object]

Add schedule holiday

NameInTypeRequiredDescription
scheduleIDpathstringYesA uuid.

Required, sent as application/json.

FieldTypeDescription
dayrequiredinteger
intervalsrequiredarray of ScheduleWindowView
intervals[].endMinuterequiredinteger
intervals[].startMinuterequiredinteger
monthrequiredinteger
namerequiredstring
recursrequiredboolean
yearrequiredinteger
StatusBodyDescription
201application/json, ScheduleHolidayViewCreated.
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 sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.

201 response body

FieldTypeDescription
dayrequiredinteger
intervalsrequiredarray of ScheduleWindowView
intervals[].endMinuterequiredinteger
intervals[].startMinuterequiredinteger
monthrequiredinteger
namerequiredstring
publicIdrequiredstring
recursrequiredboolean
scheduleIdrequiredstring
yearinteger
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/sla/schedules/<scheduleID>/holidays' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"day": 0,
"intervals": [
{
"endMinute": 0,
"startMinute": 0
}
],
"month": 0,
"name": "string",
"recurs": false,
"year": 0
}'

DELETEsla:manageshared facehosteditmspremoteIdempotent

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

Source: [object Object]

Remove sla target

NameInTypeRequiredDescription
targetIDpathstringYesA uuid.
StatusBodyDescription
204NoneSuccess, with no body.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold sla:manage.
404application/problem+json, ProblemDetailsNo resource matches that id.
409application/problem+json, ProblemDetailsThe request conflicts with the current state.
500application/problem+json, ProblemDetailsNo client store in request context.
507application/problem+json, ProblemDetailsThe storage profile for this client is over its configured quota. Raise the quota or remove attachments.
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/sla/targets/<targetID>' \
-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.