---
title: "Update sequence"
method: PATCH
path: "/v1/sequences/{sequenceId}"
tags: ["Sequences"]
---

# Update sequence

`PATCH /v1/sequences/{sequenceId}`

Update a sequence's name, steps, or exit conditions. Steps can only be modified while the sequence is draft or paused.

## Path parameters

- `sequenceId` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `steps` object[] — Replace the full step list. Only allowed while the sequence is draft or paused.
    - `order` integer, required
    - `delayMinutes` integer, required
    - `message` object
      - `text` string
    - `template` object
      - `name` string
      - `language` string
      - `variableMapping` object
  - `exitOnReply` boolean
  - `exitOnUnsubscribe` boolean

## Response `200`

Sequence updated

- object
  - `success` boolean
  - `sequence` object
    - `id` string
    - `name` string
    - `description` string
    - `status` string
    - `steps` object[]
    - `exitOnReply` boolean
    - `exitOnUnsubscribe` boolean
    - `updatedAt` string, date-time

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `404` — Resource not found

---

[API](https://skmtc.net/zernio/apis/zernio-api.md) · [All operations](https://skmtc.net/zernio/apis/zernio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zernio/zernio-api/versions/51932b099b2f/schema)
