---
title: "Update Sequence"
method: PUT
path: "/v1/sequences/"
tags: ["Sequences"]
---

# Update Sequence

`PUT /v1/sequences/`

## Request body

- UpdateSequenceRequest
  - `Name` string, required
  - `SequenceID` string, uuid, required
  - `InboundResponseDelay` integer, required
  - `InboundResponseDelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
  - `Flow` union[]
    - union
      - WhatsappFlowStep — Only used for Outbound sequences.
        - `Delay` integer, required
        - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
        - `TemplateID` string, uuid, nullable
        - `MessageContent` string, nullable
        - `AudioUrl` string, nullable
        - `VideoUrl` string, nullable
        - `FollowupDelays` FrontendFollowupDelay[], required
          - `Delay` integer, required
          - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
          - `Content` string, nullable
      - InstagramFlowStep — Only used for Outbound sequences.
        - `Delay` integer, required
        - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
        - `MessageContent` string, nullable
        - `FollowupDelays` FrontendFollowupDelay[], required
          - `Delay` integer, required
          - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
          - `Content` string, nullable
        - `Buttons` ButtonPayload[], nullable
          - `Title` string, required
          - `URL` string, required
        - `QuickReplies` QuickReplyPayload[], nullable
          - `Title` string, required
          - `Payload` string, required
        - `AudioUrl` string, nullable
      - LeadFinderInstagramFlowStep — Only used for Outbound sequences.
        - `Action` 'SEND_MESSAGE' | 'FOLLOW' | 'LIKE_POSTS' | 'UNFOLLOW' | 'TRACK_FOLLOWERS'
        - `Delay` integer, required
        - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
        - `MessageContent` string, nullable
        - `FollowupDelays` FrontendFollowupDelay[], required
          - `Delay` integer, required
          - `DelayUnit` 'seconds' | 'minutes' | 'hours' | 'days', required
          - `Content` string, nullable
        - `DailyLimit` integer, nullable
        - `Buttons` ButtonPayload[], nullable
          - `Title` string, required
          - `URL` string, required
        - `QuickReplies` QuickReplyPayload[], nullable
          - `Title` string, required
          - `Payload` string, required
        - `AudioUrl` string, nullable
        - `VideoUrl` string, nullable
  - `AgentID` string, uuid, nullable
  - `FilteringAgent` string, nullable
  - `ProfileID` string, nullable
  - `Trigger` 'CONTACT_CREATED' | 'CONTACT_SUBSCRIBED_TO_SEQUENCE' | 'WHATSAPP_MESSAGE' | 'INSTAGRAM_COMMENT' | 'INSTAGRAM_MESSAGE' | 'INSTAGRAM_STORY_REPLY' | 'INSTAGRAM_LEAD_FINDER_NEW_FOLLOWER' | 'INSTAGRAM_LEAD_FINDER_OTHER_ACCOUNT_FOLLOWERS' | 'INSTAGRAM_LEAD_FINDER_NEW_LIKE' | 'INSTAGRAM_LEAD_FINDER_OTHER_ACCOUNT_COMMENT'
  - `ShouldContinueExistingConversations` boolean, nullable
  - `TargetAccounts` string[], nullable
  - `TargetPostsURLs` string[], nullable
  - `WorkingHours` SequenceWorkingHours — Working hours for a sequence. Times should be in HH:MM format (local time).
    - `Enabled` boolean
    - `From` string, nullable
    - `To` string, nullable
    - `Timezone` string, nullable
  - `Keywords` string[], nullable
  - `TargetMediaIds` string[], nullable
  - `EnableAgentOnConversation` boolean, nullable
  - `RequireManualApproval` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/orsay/apis/fastapi.md) · [All operations](https://skmtc.net/orsay/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/orsay/fastapi/revisions/23d1ff06d0d0/schema)
