Skip to content

PUT   /tickets/settings

Update ticket settings

Update ticket configuration settings

Request Body

{}

Try it out

Loading...

Output:

Responses

Description

Settings updated successfully

{
"defaultStatus": "string",
"defaultPriority": "string",
"autoAssignment": false,
"requireCategory": false,
"allowCustomerClose": false,
"slaThresholds": {
"urgent": {
"firstResponseMinutes": 0,
"resolutionMinutes": 0
},
"high": {
"firstResponseMinutes": 0,
"resolutionMinutes": 0
},
"medium": {
"firstResponseMinutes": 0,
"resolutionMinutes": 0
},
"low": {
"firstResponseMinutes": 0,
"resolutionMinutes": 0
}
},
"businessHoursOnly": false,
"pauseOnCustomerWaiting": false,
"atRiskThresholdPercent": 0,
"updatedAt": "string",
"updatedBy": "string"
}

References

#/components/schemas/SLAThreshold

type: object
properties:
firstResponseMinutes:
type: integer
minimum: 1
description: First response target in minutes
resolutionMinutes:
type: integer
minimum: 1
description: Resolution target in minutes

#/components/schemas/TicketSettings

type: object
properties:
defaultStatus:
type: string
description: Default status for new tickets
defaultPriority:
type: string
enum:
- urgent
- high
- medium
- low
description: Default priority
autoAssignment:
type: boolean
description: Automatic assignment enabled
requireCategory:
type: boolean
description: Category required on creation
allowCustomerClose:
type: boolean
description: Customers can close tickets
slaThresholds:
type: object
properties:
urgent:
$ref: "#/components/schemas/SLAThreshold"
high:
$ref: "#/components/schemas/SLAThreshold"
medium:
$ref: "#/components/schemas/SLAThreshold"
low:
$ref: "#/components/schemas/SLAThreshold"
businessHoursOnly:
type: boolean
description: SLA counts only business hours
pauseOnCustomerWaiting:
type: boolean
description: SLA pauses when waiting on customer
atRiskThresholdPercent:
type: integer
description: At-risk threshold percentage
updatedAt:
type: string
format: date-time
updatedBy:
type: string

Route Source Code

Check out the source code for this route entrypoint here: /tickets/settings/route.ts

Or the swagger.yaml spec this documentation was generated from: /tickets/settings/swagger.yaml