Skip to content

HubSpot: Update sequence

HubSpot sequences.updateSequence: arguments, response, policy and SDK examples.

← Sequences operations · Get started

Operation hubspot.sequences_update_sequence

Provider route: PUT /automation/sequences/2026-09/serviceaccounts/sequences/{sequenceId}. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/hubspot with npm, or alter-sdk-hubspot with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HubSpotIntegration } from "@alter-ai/hubspot";
async function execute(input: Parameters<HubSpotIntegration["sequences"]["updateSequence"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HubSpotIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.sequences.updateSequence(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_hubspot import HubSpotIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HubSpotIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.sequences.update_sequence(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
pathobjectRequired within parentAdditional keys: not allowed
path.sequenceIdstringRequired within parent
bodyModelRequired within parentExpand Create sequence — request body — body

Referenced models: Create sequence — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Update sequence — response body

Referenced models: Update sequence — response body

10 more schemas are linked from the tables above, on the schema pages.

Update sequence — response body
FieldTypePresenceDescription and constraints
$objectRoot
createdAtstringRequired within parentThe date and time when the sequence was created, in ISO 8601 format.
Format: date-time
dependenciesarrayRequired within parentAn array of dependencies between steps in the sequence, each represented by a PublicSequenceStepDependencyResponse object.
dependencies[]ModelEach itemExpand Update sequence — response body — dependencies item
folderIdstringOptionalThe identifier for the folder containing the sequence.
idstringRequired within parentThe unique identifier for the sequence.
namestringRequired within parentThe name of the sequence.
settingsModelOptionalExpand Update sequence — response body — settings
stepsarrayRequired within parentAn array of steps included in the sequence, each represented by a PublicSequenceStepResponseV2 object.
steps[]ModelEach itemExpand Update sequence — response body — steps item
updatedAtstringRequired within parentThe date and time when the sequence was last updated, in ISO 8601 format.
Format: date-time
userIdstringRequired within parentThe unique identifier of the user who owns the sequence.

Referenced models: Update sequence — response body — settings, Update sequence — response body — dependencies item, Update sequence — response body — steps item

Create sequence — request body — body
FieldTypePresenceDescription and constraints
$objectRoot
dependenciesarrayRequired within parentAn array of dependencies between sequence steps, each defined by the PublicSequenceStepDependencyRequest schema.
dependencies[]ModelEach itemExpand Create sequence — request body — body dependencies item
dynamicbooleanRequired within parentA boolean indicating whether the sequence is dynamic.
engagementTriggersModelOptionalExpand Create sequence — request body — body engagement Triggers
folderIdstringOptionalThe identifier of the folder where the sequence is stored. It is a string.
namestringRequired within parentThe name of the sequence. It is a string.
settingsModelRequired within parentExpand Create sequence — request body — body settings
stepsarrayRequired within parentAn array of steps in the sequence, each defined by the PublicSequenceStepRequest schema.
steps[]ModelEach itemExpand Create sequence — request body — body steps item

Referenced models: Create sequence — request body — body engagement Triggers, Create sequence — request body — body settings, Create sequence — request body — body dependencies item, Create sequence — request body — body steps item

Update sequence — response body — settings
FieldTypePresenceDescription and constraints
$objectRoot
createdAtstringRequired within parentThe date and time when the sequence settings were created, in ISO 8601 format.
Format: date-time
eligibleFollowUpDaysstringRequired within parentSpecifies the days eligible for follow-ups. Valid values include 'EVERYDAY', 'BUSINESS_DAYS', and 'WEEKDAYS_ONLY'.
Known values: BUSINESS_DAYS, EVERYDAY, WEEKDAYS_ONLY
idstringRequired within parentThe unique identifier for the sequence settings.
individualTaskRemindersEnabledbooleanRequired within parentA boolean indicating whether individual task reminders are enabled.
sellingStrategystringRequired within parentThe strategy used for selling, which can be either 'LEAD_BASED' or 'ACCOUNT_BASED'.
Known values: ACCOUNT_BASED, LEAD_BASED
sendWindowEndMinuteJSONRequired within parent
sendWindowEndMinute (anyOf 1)integerAlternativeThe ending minute of the window during which emails can be sent, represented as an integer.
Format: int32
sendWindowEndMinute (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
sendWindowStartMinuteJSONRequired within parent
sendWindowStartMinute (anyOf 1)integerAlternativeThe starting minute of the window during which emails can be sent, represented as an integer.
Format: int32
sendWindowStartMinute (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
taskReminderMinuteJSONRequired within parent
taskReminderMinute (anyOf 1)integerAlternativeThe minute at which task reminders are sent, represented as an integer.
Format: int32
taskReminderMinute (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedAtstringRequired within parentThe date and time when the sequence settings were last updated, in ISO 8601 format.
Format: date-time
Update sequence — response body — dependencies item
FieldTypePresenceDescription and constraints
$objectRoot
createdAtstringRequired within parentThe date and time when this dependency was created, in ISO 8601 format.
Format: date-time
dependencyTypestringRequired within parentThe type of dependency, which can be either 'TASK_COMPLETION' or 'MANUAL_PAUSE'.
Known values: ADAPTIVE_COMPLETION, MANUAL_PAUSE, TASK_COMPLETION
idstringRequired within parentThe unique identifier for this dependency.
reliesOnSequenceStepIdstringRequired within parentThe unique identifier of the sequence step that this dependency relies on.
reliesOnStepOrderJSONRequired within parent
reliesOnStepOrder (anyOf 1)integerAlternativeThe order number of the step that this dependency relies on.
Format: int32
reliesOnStepOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
requiredBySequenceStepIdstringRequired within parentThe unique identifier of the sequence step that requires this dependency.
requiredByStepOrderJSONRequired within parent
requiredByStepOrder (anyOf 1)integerAlternativeThe order number of the step that requires this dependency.
Format: int32
requiredByStepOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
updatedAtstringRequired within parentThe date and time when this dependency was last updated, in ISO 8601 format.
Format: date-time
Update sequence — response body — steps item
FieldTypePresenceDescription and constraints
$objectRoot
actionTypestringRequired within parentThe type of action to be performed in this step. Valid values include 'EMAIL', 'TASK', and 'FINISH_ENROLLMENT'.
Known values: ADAPTIVE_CONTAINER, EMAIL, FINISH_ENROLLMENT, TASK
createdAtstringRequired within parentThe date and time when this step was created, in ISO 8601 format.
Format: date-time
delayMillisJSONRequired within parent
delayMillis (anyOf 1)integerAlternativeThe delay before this step is executed, specified in milliseconds.
Format: int64
delayMillis (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
emailPatternModelOptionalExpand Update sequence — response body — steps item email Pattern
idstringRequired within parentThe unique identifier for this sequence step.
stepOrderJSONRequired within parent
stepOrder (anyOf 1)integerAlternativeAn integer indicating the order of this step within the sequence.
Format: int32
stepOrder (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
taskPatternModelOptionalExpand Update sequence — response body — steps item task Pattern
updatedAtstringRequired within parentThe date and time when this step was last updated, in ISO 8601 format.
Format: date-time

Referenced models: Update sequence — response body — steps item email Pattern, Update sequence — response body — steps item task Pattern

Create sequence — request body — body engagement Triggers
FieldTypePresenceDescription and constraints
$objectRoot
numberOfClicksintegerOptionalAn integer representing the number of times links within an email must be clicked to trigger an engagement action.
Format: int32
numberOfOpensintegerOptionalAn integer representing the number of times an email must be opened to trigger an engagement action.
Format: int32
Create sequence — request body — body steps item email Pattern
FieldTypePresenceDescription and constraints
$objectRoot
templateIdstringRequired within parentThe unique identifier for the email template to be used. It is a string and is required.
threadEmailToStepOrderintegerOptionalAn integer indicating the step order to which the email should be threaded. This property is optional.
Format: int32

SDK function policy ID: hubspot.sequences_update_sequence. Catalog operation: sequences_update_sequence. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["automation.sequences.create", "automation.sequences.edit", "automation.sequences.read"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.