---
title: "Delete ticket"
method: DELETE
path: "/v1/tickets/{id}"
tags: ["Ticket"]
---

# Delete ticket

`DELETE /v1/tickets/{id}`

## Path parameters

- `id` integer, required

## Response `200`

OK

- Ticket
  - `id` integer
  - `departmentId` integer — Department (brand) this ticket belongs to. Derived from the pipeline on create (IDT-417).
  - `subject` string, required — Ticket's subject
  - `contactId` integer — ID of the related contact
  - `companyId` integer, nullable — ID of the related company
  - `categoryIds` string, nullable — Category IDs separated by commas
  - `ownerIds` string, nullable — IDs of the users assigned to this ticket, separated by commas
  - `ownerGroupId` integer, nullable — IDs of the group assigned to this ticket
  - `followerIds` string, nullable — IDs of the users following this ticket, separated by commas
  - `createdContactId` integer
  - `createdAutomationId` integer
  - `createdUserId` integer
  - `createdDate` string, date-time
  - `updatedUserId` integer
  - `updatedDate` string, date-time
  - `startDate` string, date-time, nullable — Start date in UTC (yyyy-MM-dd HH:mm:ss)
  - `dueDate` string, date-time, nullable — Due date in UTC (yyyy-MM-dd HH:mm:ss)
  - `firstResponseDate` string, date-time, nullable — First response date in UTC (yyyy-MM-dd HH:mm:ss)
  - `closingDate` string, date-time, nullable — Closing date in UTC (yyyy-MM-dd HH:mm:ss)
  - `reopenDate` string, date-time, nullable
  - `source` 1 | 2 | 3 | 4 | 5 | 6, required — <p>Enum values:</p><ul><li><i>1 = Email</i></li><li><i>2 = Phone</i></li><li><i>3 = Chat</i></li><li><i>4 = Web</i></li><li><i>5 = Sms</i></li><li><i>6 = Manual</i></li></ul>
  - `status` 1 | 2 | 3 | 4, required — <p>Enum values:</p><ul><li><i>1 = Open</i></li><li><i>2 = Pending</i></li><li><i>3 = Resolved</i></li><li><i>4 = Closed</i></li></ul>
  - `lastStatusChangeDate` string, date-time, nullable
  - `priority` 1 | 2 | 3 | 4, required — <p>Enum values:</p><ul><li><i>1 = Low</i></li><li><i>2 = Medium</i></li><li><i>3 = High</i></li><li><i>4 = Urgent</i></li></ul>
  - `notes` string, nullable
  - `pipelineId` integer, required — ID of the pipeline that this ticket belongs to
  - `stageId` integer, required — ID of the stage that this ticket belongs to
  - `orderNo` integer, required — Kanban stage order
  - `linkedType` 0 | 1 | 2 | 5 | 6 | 7 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 23 | 25 | 26 | 27 | 31 | 32 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 50 | 51 | 52 | 53 | 55 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 72 — Infoset data objects<p>Enum values:</p><ul><li><i>0 = None</i></li><li><i>1 = Company</i></li><li><i>2 = Contacts</i></li><li><i>5 = Deals</i></li><li><i>6 = EmailLogs</i></li><li><i>7 = Emails</i></li><li><i>10 = MailAccounts</i></li><li><i>11 = MarketingLog</i></li><li><i>12 = MarketingSession</i></li><li><i>13 = MarketingTable</i></li><li><i>14 = Pipeline</i></li><li><i>15 = PipelineStages</i></li><li><i>16 = Todos</i></li><li><i>19 = TicketLogs</i></li><li><i>20 = Tickets</i></li><li><i>21 = Users</i></li><li><i>22 = Settings</i></li><li><i>23 = ContactGroups</i></li><li><i>25 = UserRights</i></li><li><i>26 = CustomUserRights</i></li><li><i>27 = UserGroups</i></li><li><i>31 = Automations</i></li><li><i>32 = Subjects</i></li><li><i>34 = Categories</i></li><li><i>35 = CallLogs</i></li><li><i>36 = Voicemails</i></li><li><i>37 = UserChannelRights</i></li><li><i>38 = CallCenterQueues</i></li><li><i>39 = DialPlans</i></li><li><i>40 = ServiceProviders</i></li><li><i>41 = IvrMenus</i></li><li><i>42 = IvrMenuDetails</i></li><li><i>43 = IvrPlugins</i></li><li><i>44 = VoipUsers</i></li><li><i>45 = DialerTable</i></li><li><i>46 = DialerSession</i></li><li><i>47 = DialerSessionLog</i></li><li><i>48 = DialerDtmfLink</i></li><li><i>50 = ChatRooms</i></li><li><i>51 = ChatTable</i></li><li><i>52 = ChatMessages</i></li><li><i>53 = ChatWidgets</i></li><li><i>55 = OutboundMessages</i></li><li><i>60 = ChatWidgetHomepage</i></li><li><i>61 = Chatbot</i></li><li><i>62 = ChatbotObject</i></li><li><i>63 = DealLogs</i></li><li><i>64 = SlaPolicies</i></li><li><i>65 = Sms</i></li><li><i>66 = Survey</i></li><li><i>67 = Announcements</i></li><li><i>68 = AnnouncementReadLogs</i></li><li><i>69 = AuditLogs</i></li><li><i>72 = Integrations</i></li></ul>
  - `linkedId` integer — Linked item ID
  - `customFields` string, nullable — A stringified JSON object mapping custom field names to values Example: {"My Text Custom Field":"Field Value","My Numeric Custom Field":2}
  - `isSpam` integer, nullable — 1 if the ticket is a spam, 0 (or null) otherwise
  - `mergeTickets` MergedTicketLink[], nullable — Tickets to be merged to this root ticket
    - `id` integer
    - `primary` boolean
  - `slaId` integer, nullable — If an SLA policy affects this ticket, ID of the attached SlaStats, otherwise null
  - `mergeId` integer, nullable — If this ticket is merged with another ticket, ID of the root ticket, otherwise null
  - `nextSlaBreach` string, date-time, nullable — Next SLA breach date in UTC (yyyy-MM-dd HH:mm:ss)
  - `slaStats` SlaStats
    - `id` integer
    - `departmentId` integer — IDT-435: brand of the parent record (tasks/chat_rooms) at the time the SLA was applied. 0 = legacy/brand-less.
    - `slaId` integer
    - `linkedType` integer
    - `linkedId` integer
    - `dueBy` string, date-time, nullable — Çözülmesi gereken zaman
    - `resolveTime` string, date-time, nullable — Çözülme Zamanı
    - `dueEscalated` boolean
    - `frDueBy` string, date-time, nullable — İlk cevaplanması gereken zaman
    - `frTime` string, date-time, nullable — İlk cevaplanma zamanı
    - `frEscalated` boolean — İlk cevapmala için e-posta bildirimi yapıldı mı?
    - `nrDueBy` string, date-time, nullable — Sonraki cevaplanması gereken zaman
    - `nrTime` string, date-time, nullable — Sonraki cevap zamanı
    - `nrEscalated` boolean — Sonraki cevaplanma için e-posta bildirimi yapıldı mı?
    - `accountId` integer
  - `resolveTimeSec` integer, nullable — Resolve time in seconds
  - `resolveTimeBusinessSec` integer, nullable — Resolve time in seconds (calculated in business hours)
  - `frTimeSec` integer, nullable — First response time in seconds
  - `frTimeBusinessSec` integer, nullable — First response time in seconds (calculated in business hours)
  - `openTimeSec` integer, nullable — The time ticket stayed in Open status
  - `openTimeBusinessSec` integer, nullable — The time ticket stayed in Open status (calculated in business hours)
  - `pendingTimeSec` integer, nullable — The time ticket stayed in Pending status
  - `pendingTimeBusinessSec` integer, nullable — The time ticket stayed in Pending status (calculated in business hours)
  - `firstAssignTimeSec` integer, nullable — First assign time in seconds
  - `chatTags` string, nullable
  - `callTags` string, nullable

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.dev/infoset/apis/infoset-rest-api.md) · [All operations](https://skmtc.dev/infoset/apis/infoset-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infoset/infoset-rest-api/revisions/f5bc39a1ac15/schema)
