Skip to content

PATCH   /ticket-types/{id}/status

Update ticket type status

Updates the active status of a ticket type. The user must have access to the account that owns the ticket type.

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

id   path string

The unique ID of the ticket type to update

Optional Parameters

Click here to view an exhaustive list of all available parameters
x-account-id   header string

The account ID for the request

Request Body

{
"isActive": false
}

Try it out

Loading...

Output:

Responses

Description

Ticket type status updated successfully

{
"id": 0,
"uniqueId": "string",
"accountId": "string",
"name": "string",
"description": "string",
"category": "string",
"requiredPermissions": [
"string"
],
"isActive": false,
"autoAssignmentEnabled": false,
"rotationId": "string",
"customFields": [
{}
],
"sortOrder": 0,
"createdAt": "string",
"updatedAt": "string",
"createdBy": "string",
"updatedBy": "string"
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: The account ID for the request
required: false

#/components/schemas/TicketType

type: object
description: Ticket type object representing a category/template for tickets
properties:
id:
type: integer
description: Internal database ID
uniqueId:
type: string
description: Unique identifier for the ticket type
accountId:
type: string
description: ID of the account that owns this ticket type
name:
type: string
description: Name of the ticket type
description:
type: string
description: Description of the ticket type
category:
type: string
description: Category of the ticket type
enum:
- technical
- billing
- account
- compliance
- feature_request
- underwriting
- general_support
- general_forms
- retention
- activations
- fee_change_forms
- bank_submissions
requiredPermissions:
type: array
items:
type: string
description: Array of permission strings required to create this ticket type
isActive:
type: boolean
description: Whether this ticket type is active
autoAssignmentEnabled:
type: boolean
description: Whether auto-assignment is enabled for this ticket type
rotationId:
type: string
description: ID of the rotation to use for auto-assignment
customFields:
type: array
items:
type: object
description: Custom field definitions for this ticket type
sortOrder:
type: integer
description: Sort order for display purposes
createdAt:
type: string
format: date-time
description: When the ticket type was created
updatedAt:
type: string
format: date-time
description: When the ticket type was last updated
createdBy:
type: string
description: Email of the user who created the ticket type
updatedBy:
type: string
description: Email of the user who last updated the ticket type
required:
- id
- uniqueId
- accountId
- name
- description
- category

Route Source Code

Check out the source code for this route entrypoint here: /ticket-types/[id]/status/route.ts

Or the swagger.yaml spec this documentation was generated from: /ticket-types/swagger.yaml