---
title: "Update Sequence By ID"
method: PUT
path: "/sequences/{id}"
---

# Update Sequence By ID

`PUT /sequences/{id}`

This endpoint updates an existing sequence owned by the client.

## Path parameters

- `id` integer, required

## Request body

- object
  - `name` string, required — The name used to easily identify the bot. Allowed values are between 2 and 255 characters.
  - `status` string, required — The status of the sequence. Allowed values are active and inactive.
  - `number_id` integer, required — The Number ID associating the sequence with a number.
  - `blocks` object[], required — The separate blocks of functionality to process when the sequence is triggered.
    - `id` string, required — The unique ID for the block (if it already exists) or a string indicating a new block.
    - `messaging_type` string, required — Parameters specific to the block based on messaging_type. See Sequence Blocks section for allowed values.
    - `blocks` object[] — Subblocks under the given block. See Sequence Blocks section for blocks allowed to contain subblocks.
      - `id` string, required — The unique ID for the block (if it already exists) or a string indicating a new block.
      - `messaging_type` string, required — Parameters specific to the block based on messaging_type. See Sequence Blocks section for allowed values.
      - `blocks` unknown[] — Subblocks under the given block. See Sequence Blocks section for blocks allowed to contain subblocks.
        - unknown

## Response `201`

201

- object
  - `sequence` object
    - `id` integer
    - `name` string
    - `status` string
    - `client_id` integer
    - `number_id` integer

## Other responses

- `422` — 422

---

[API](https://skmtc.dev/seebot/apis/seebottalk.md) · [All operations](https://skmtc.dev/seebot/apis/seebottalk/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seebot/seebottalk/revisions/4b8c104ade48/schema)
