---
title: "Update a step"
method: PATCH
path: "/sequences/{sequence_id}/steps/{id}"
tags: ["Sequences"]
---

# Update a step

`PATCH /sequences/{sequence_id}/steps/{id}`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/sequences/{sequence_id}/steps/{id}`
- Auth: API key in header `Authorization`

Changes a step's subject, body, preview text, delay or position. Content changes apply to every later send of the step. A new delay re-times everyone waiting for it from their last send, so a delay already passed sends on the next minute. Moving a step works like removing it and adding it at the new place: nobody gets a step twice.

## Path parameters

- `sequence_id` string, required
- `id` string, required

## Request body

- EmailSequenceStepRequest
  - `subject` string: Takes the same variables as `body`.
  - `preview_text` string, nullable: Inbox preview line. Takes the same variables as `body`.
  - `body` string: Email body (HTML or plain text). Variables, filled per recipient: {{customer.first_name}}, {{customer.last_name}}, {{customer.email}}, {{business.name}}, {{product.name}}, {{order.product_names}}, {{tag.name}}, {{form.name}}, {{customer.fields.<key>}}. `product.*` is the product whose purchase enrolled them (`order.paid` sequences only), `tag.name` the tag that enrolled them (`tag_added`), `form.name` the form a new lead came through (`lead_created`, empty for leads from elsewhere). `customer.fields.<key>` reads `<key>` from the contact's `metadata` when the email is sent; the key takes letters, digits and underscores. A blank value renders as nothing, or as the default in `{{ customer.first_name | default: "there" }}`. Any other `{{ }}` is rejected.
  - `delay` object: Wait after the previous step's send (after enrolling, for the first step).
    - `amount` integer, required: How many `unit`s to wait. `0` sends right away.
    - `unit` 'minutes' | 'hours' | 'days' | 'weeks', required
  - `position` integer: 1-based place in the sequence. On create, omit to append; the step at that place and those after it move down one.

## Response `200`

The updated step

- EmailSequenceStep
  - `object` 'sequence_step', required
  - `id` string, required
  - `sequence` string, required
  - `position` integer, required
  - `subject` string, required
  - `preview_text` string, nullable, required
  - `body` string, required
  - `delay` object, required: Wait after the previous step's send (after enrolling, for the first step).
    - `amount` integer, required: How many `unit`s to wait. `0` sends right away.
    - `unit` 'minutes' | 'hours' | 'days' | 'weeks', required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 7 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `403`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `404`
  - …3 more
- **2026-10-27** `ad9fd6476d85`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/sequences/:sequence_id/steps/:id/patch.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
