Skip to content

Depot ticket notifications

Registers the client notification-template routes on the tenant service-desk 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.

GETticket:managetenant facehosteditmspremoteIdempotent

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

Source: [object Object]

listTicketNotificationTemplates lists the five event emails.

StatusBodyDescription
200application/json, PagedResultTicketNotificationTemplateViewSuccess.
400application/problem+json, ProblemDetailsOne or more validation errors occurred.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold ticket:manage.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
itemsrequiredarray of TicketNotificationTemplateView
items[].bodyrequiredstring
items[].enabledrequiredboolean
items[].eventrequiredstring
items[].originrequiredstring
items[].subjectrequiredstring
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/ticket-notification-templates' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

PUT /api/v1/ticket-notification-templates/{event}

Section titled “PUT /api/v1/ticket-notification-templates/{event}”

PUTticket:managetenant facehosteditmspremoteIdempotent

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

Source: [object Object]

putTicketNotificationTemplate replaces one event’s email.

Editing any event takes this client’s notifications off the MSP defaults until reverted.

NameInTypeRequiredDescription
eventpathstringYes

Required, sent as application/json.

FieldTypeDescription
bodystring or null
enabledboolean or null
subjectstring or null
StatusBodyDescription
200application/json, TicketNotificationTemplateViewSuccess.
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 ticket:manage.
404application/problem+json, ProblemDetailsThere is no such notification event.
409application/problem+json, ProblemDetailsThe template could not be saved.
500application/problem+json, ProblemDetailsNo client store in request context.

200 response body

FieldTypeDescription
bodyrequiredstring
enabledrequiredboolean
eventrequiredstring
originrequiredstring
subjectrequiredstring
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 PUT 'https://depot.example.com/api/v1/ticket-notification-templates/<event>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"body": "string",
"enabled": false,
"subject": "string"
}'

POST /api/v1/ticket-notification-templates/{event}/preview

Section titled “POST /api/v1/ticket-notification-templates/{event}/preview”

POSTticket:managetenant facehosteditmspremote

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

Source: [object Object]

previewTicketNotificationTemplate renders an unsaved template against a sample ticket.

NameInTypeRequiredDescription
eventpathstringYes

Required, sent as application/json.

FieldTypeDescription
bodyrequiredstring
subjectrequiredstring
StatusBodyDescription
200application/json, TicketNotificationPreviewViewSuccess.
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 ticket:manage.
404application/problem+json, ProblemDetailsThere is no such notification event.

200 response body

FieldTypeDescription
htmlrequiredstring
subjectrequiredstring
textrequiredstring
warningsrequiredarray of string
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/ticket-notification-templates/<event>/preview' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-b 'outpost_console=<console-session>' \
--data '{
"body": "string",
"subject": "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.