---
title: "Update Service Ticket"
description: "How to call Update Service Ticket (PATCH /api/service-tickets/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/reference/update_service_ticket_beta"
revision: "2026-10-15.pre"
operationId: "update_service_ticket_beta"
method: "PATCH"
endpoint: "https://a.klaviyo.com/api/service-tickets/{id}"
authentication: "privateKey"
scopes: ["agents:write"]
rateLimits: {"burst":"3/s","steady":"60/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json"
jsonApi: {"include":["service-team","service-ticket-csat-response"],"fields":{"service-ticket":["channel","created_at","id","status","updated_at"],"service-team":["created_at","description","id","name","updated_at"],"service-ticket-csat-response":["answers","id","rating","submitted_at"]}}
related: ["https://developers.klaviyo.com/en/reference/service-beta/llms.txt","https://developers.klaviyo.com/en/reference/get_service_tickets_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_beta.md","https://developers.klaviyo.com/en/reference/create_service_ticket_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_csat_response_beta.md","https://developers.klaviyo.com/en/reference/create_service_ticket_csat_response_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_csat_surveys_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_csat_survey_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_id_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/get_service_ticket_for_customer_agent_conversation_beta.md","https://developers.klaviyo.com/en/reference/get_message_ids_for_service_ticket_beta.md","https://developers.klaviyo.com/en/reference/get_messages_for_service_ticket_beta.md","https://developers.klaviyo.com/en/reference/get_note_ids_for_service_ticket_beta.md","https://developers.klaviyo.com/en/reference/get_notes_for_service_ticket_beta.md"]
---

# Update Service Ticket

> This is the Markdown version of https://developers.klaviyo.com/en/reference/update_service_ticket_beta

```http
PATCH https://a.klaviyo.com/api/service-tickets/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-10-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Updates one Helpdesk ticket's status, team or assignee.

Closed web chat and Instagram tickets can't be reopened.

- Revision header: `revision: 2026-10-15.pre` (required)
- Scopes: `agents:write`
- Rate limits: Burst: `3/s`, Steady: `60/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json)

## Example request

### curl

```bash
curl --request PATCH \
     --url 'https://a.klaviyo.com/api/service-tickets/id' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-10-15.pre' \
     --header 'content-type: application/vnd.api+json' \
     --data '{
  "data": {
    "type": "service-ticket",
    "id": "string",
    "attributes": {
      "status": "closed"
    }
  }
}'
```

### CLI

```bash
klaviyo beta service update-service-ticket id \
  -d '{
  "data": {
    "type": "service-ticket",
    "id": "string",
    "attributes": {
      "status": "closed"
    }
  }
}'
```

Sign in first with `klaviyo auth login`. [Install the Klaviyo CLI](https://developers.klaviyo.com/en/docs/klaviyo_cli.md)

## Path parameters

- `id` (string, required)

## Query parameters

- `fields[service-ticket]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `channel`, `created_at`, `id`, `status`, `updated_at`
- `fields[service-team]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `created_at`, `description`, `id`, `name`, `updated_at`
- `fields[service-ticket-csat-response]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `answers`, `id`, `rating`, `submitted_at`
- `include` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/reference.md) Allowed values: `service-team`, `service-ticket-csat-response`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-10-15.pre`

## Request body

Content type: `application/vnd.api+json` (required)

- `data` (object, required)
  - `type` (string, required): Allowed values: `service-ticket`
  - `id` (string, required)
  - `attributes` (object, required)
    - `status` (string, nullable): New status of the ticket. Closing sends the customer the CSAT survey, if CSAT is on. Allowed values: `open`, `closed` Example: `closed`
  - `relationships` (object)
    - `service-team` (object)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
    - `assignee` (object)
      - `data` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).

### Example request body

```json
{
  "data": {
    "type": "service-ticket",
    "id": "string",
    "attributes": {
      "status": "closed"
    }
  }
}
```

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `service-ticket`
  - `id` (string, required): Service ticket identifier. Example: `01JABCDEFGHJKMNPQRSTVWXYZ0`
  - `attributes` (object, required)
    - `status` (string, required): Current status of the ticket. Allowed values: `open`, `closed` Example: `open`
    - `channel` (string, nullable): Channel of the ticket's latest message, if it has any messages. Example: `email`
    - `created_at` (string<date-time>, required): Date and time when the ticket was created. Example: `2026-10-01T12:00:00+00:00`
    - `updated_at` (string<date-time>, nullable): Date and time when the ticket was last updated. Example: `2026-10-02T12:00:00+00:00`
  - `relationships` (object)
    - `service-team` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
    - `profile` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
    - `assignee` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
    - `service-ticket-csat-response` (object)
      - `data` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `included` (oneOf[])
  - One of:
    - Option 1: `ServiceTeamResponseData`
      - `type` (string, required): Allowed values: `service-team`
      - `id` (string, required): Service team identifier. Example: `01JABCDEFGHJKMNPQRSTVWXYZ0`
      - `attributes` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
      - `relationships` (object): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.
    - Option 2: `ServiceTicketCSATResponseResponseData`
      - `type` (string, required): Allowed values: `service-ticket-csat-response`
      - `id` (string, required): Service ticket CSAT response identifier. Example: `01JABCDEFGHJKMNPQRSTVWXYZ0`
      - `attributes` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
      - `relationships` (object, required): Fields nested this deep are in [the endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-10-15.pre/openapi/beta/apis/update_service_ticket_beta.json).
      - `links` (ObjectLinks, required): Same fields as the first ObjectLinks above.

#### Example response body

```json
{
  "data": {
    "type": "service-ticket",
    "id": "01JABCDEFGHJKMNPQRSTVWXYZ0",
    "attributes": {
      "status": "open",
      "channel": "email",
      "created_at": "2026-10-01T12:00:00+00:00",
      "updated_at": "2026-10-02T12:00:00+00:00"
    },
    "relationships": {
      "service-team": {
        "data": {
          "type": "service-team",
          "id": "string"
        }
      },
      "profile": {
        "data": {
          "type": "profile",
          "id": "string"
        }
      },
      "assignee": {
        "data": {
          "type": "user",
          "id": "string"
        }
      },
      "service-ticket-csat-response": {
        "data": {
          "type": "service-ticket-csat-response",
          "id": "string"
        }
      }
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "included": [
    {
      "type": "service-team",
      "id": "01JABCDEFGHJKMNPQRSTVWXYZ0",
      "attributes": {
        "name": "Returns",
        "description": "Handles returns and exchanges.",
        "created_at": "2026-10-01T12:00:00+00:00",
        "updated_at": "2026-10-02T12:00:00+00:00"
      },
      "relationships": {
        "service-tickets": {
          "data": [
            {
              "type": "service-ticket",
              "id": "string"
            }
          ],
          "links": {
            "self": "https://www.example.com",
            "related": "https://www.example.com"
          }
        }
      },
      "links": {
        "self": "https://www.example.com"
      }
    }
  ]
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
