---
title: "Update Ticket"
method: PATCH
path: "/issue-tracking/collections/{collection_id}/tickets/{ticket_id}"
tags: ["Tickets"]
---

# Update Ticket

`PATCH /issue-tracking/collections/{collection_id}/tickets/{ticket_id}`

Update Ticket

## Path parameters

- `ticket_id` string, required
- `collection_id` string, required

## Query parameters

- `raw` boolean

## Headers

- `x-apideck-consumer-id` string, required
- `x-apideck-app-id` string, required
- `x-apideck-service-id` string

## Request body

- Ticket
  - `id` string, required — A unique identifier for an object.
  - `parent_id` string, nullable — The ticket's parent ID
  - `collection_id` string, nullable — The ticket's collection ID
  - `type` string, nullable — The ticket's type
  - `subject` string, nullable — Subject of the ticket
  - `description` string, nullable — The ticket's description. HTML version of description is mapped if supported by the third-party platform
  - `status` string, nullable — The current status of the ticket. Possible values include: open, in_progress, closed, or - in cases where there is no clear mapping - the original value passed through.
  - `priority` 'low' | 'normal' | 'high' | 'urgent', nullable — Priority of the ticket
  - `assignees` Assignee[]
    - `id` string, required — A unique identifier for an object.
    - `username` string, nullable
  - `updated_at` string, date-time, nullable — The date and time when the object was last updated.
  - `created_at` string, date-time, nullable — The date and time when the object was created.
  - `created_by` string, nullable — The user who created the object.
  - `due_date` string, date-time, nullable — Due date of the ticket
  - `completed_at` string, date-time, nullable — When the ticket was completed
  - `tags` CollectionTag[]
    - `id` string, nullable, required — A unique identifier for an object.
    - `name` string, nullable — The name of the tag.
    - `custom_mappings` CustomMappings, nullable — When custom mappings are configured on the resource, the result is included here.
  - `custom_mappings` CustomMappings, nullable — When custom mappings are configured on the resource, the result is included here.
  - `pass_through` object[] — The pass_through property allows passing service-specific, custom data or structured modifications in request body when creating or updating resources.
    - `service_id` string, required — Identifier for the service to which this pass_through should be applied.
    - `operation_id` string — Optional identifier for a workflow operation to which this pass_through should be applied. This is useful for Unify calls that are making more than one downstream request.
    - `extend_object` object — Simple object allowing any properties for direct extension.
    - `extend_paths` object[] — Array of objects for structured data modifications via paths.
      - `path` string, required — JSONPath string specifying where to apply the value.
      - `value` unknown, required

## Response `200`

Update a Ticket

- UpdateTicketResponse
  - `status_code` integer, required — HTTP Response Status Code
  - `status` string, required — HTTP Response Status
  - `service` string, required — Apideck ID of service provider
  - `resource` string, required — Unified API resource name
  - `operation` string, required — Operation performed
  - `data` UnifiedId, required — A object containing a unique identifier for the resource that was created, updated, or deleted.
    - `id` string, required — The unique identifier of the resource
  - `_raw` Raw, nullable — Raw response from the integration when raw=true query param is provided

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `402` — Payment Required
- `404` — The specified resource was not found
- `422` — Unprocessable
- `default` — Unexpected error

---

[API](https://skmtc.dev/apideck-libraries/apis/issue-tracking-api.md) · [All operations](https://skmtc.dev/apideck-libraries/apis/issue-tracking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apideck-libraries/issue-tracking-api/revisions/edba0de8b733/schema)
