---
title: "Replace ticket"
method: PUT
path: "/v1/Tickets/{id}"
tags: ["Tickets"]
---

# Replace ticket

`PUT /v1/Tickets/{id}`

Replace an existing ticket.

## Path parameters

- `id` integer, required

## Request body

- RevAppUpdateModelsTicketUpdate
  - `prevent_email_notify` boolean — Indicates whether the update an email should be sent out about the ticket update.
  - `ticket_id` integer — Primary identifier for this ticket.
  - `description` string — Description of the issue.
  - `status` 'OPEN' | 'INWORK' | 'CLOSED' | 'PENDING_CANCELLATION' | 'CANCELED' | 'PENDING_CLOSE' | 'PENDING' — Current status of the ticket.
  - `resolution` string — Explanation of how the issue was resolved.
  - `ticket_type_id` integer — Foreign identifier indicating the type of ticket.
  - `ticket_step_id` integer — Foreign identifier indicating the step being performed to solve the issue.
  - `assigned_user_id` integer — Foreign identifier indicating the user who is assigned to this ticket.
  - `assigned_group_id` integer — Foreign identifier indicating the group who is assigned to this ticket.
  - `customer_id` integer — Foreign identifier indicating the customer who has the issue. Can be set to 0 (zero) or omitted to indicate ticket is not linked to an account.
  - `service_id` integer — Foreign identifier indicating the associated line of service. Can be set to 0 (zero) or omitted to indicate ticket is not linked to a service.
  - `priority_id` integer — Foreign identifier indicating the priority given to this ticket.
  - `contact_name` string — Name of the primary contact on the customer side.
  - `contact_phone` string — Phone number of the primary contact.
  - `contact_email` string — Primary contact email (or emails separated by comma).
  - `additional_contact_emails` string — Additional contact email addresses associated with a specific ticket.
  - `admin_ccs` string — Admin CCs associated with a specific ticket.
  - `custom_status` string — An open field to hold your own status code.
  - `due_date` string, date-time — Due date for ticket resolution.
  - `created_date` string, date-time — Date and time this ticket was created.
  - `closed_date` string, date-time — Date and time this ticket was closed.
  - `created_by` integer — Foreign identifier indicating the user who created this ticket.
  - `fields` RevAppModelsFieldValue[] — List of custom fields and their values.
    - `field_id` integer — Primary identifier for this custom field.
    - `label` string — User-defined identifier representing the custom field.
    - `value` string — Value of the custom field.
    - `links` RevAppComponentsLink[]
      - `rel` string
      - `href` string
  - `modified_date` string, date-time — Date and time this ticket was modified.
  - `modified_by` integer — Foreign identifier indicating the user who last modified this ticket.
  - `process_id` integer — Foreign identifier indicating what process to start with the ticket.
  - `contact_id` integer — Foreign identifier indicating which contact is associated with this ticket.
  - `provider_ticket_number` string — The provider ticket number associated with this ticket, if applicable.
  - `provider_contact_ID` integer — Foreign identifier indicating which provider contact is associated with this ticket.
  - `process_phase_id` integer — Foreign identifier indicating which phase of the current process this ticket is in.
  - `creation_source` string — Enumerated value indicating creation source of ticket (Rev.io, Agent Portal, etc.).
  - `links` RevAppComponentsLink[]
    - `rel` string
    - `href` string

## Response `200`

OK

- RevWebAPIModelsSuccess
  - `ok` boolean

## Other responses

- `400` — BadRequest
- `500` — InternalServerError

---

[API](https://skmtc.net/rev-io/apis/rev-io-api.md) · [All operations](https://skmtc.net/rev-io/apis/rev-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rev-io/rev-io-api/revisions/135571434f6c/schema)
