Campaigns / TypeScript SDK

Update subsequence

Update an existing subsequence on a campaign (e.g. toggle enabled, change the workflow, or retarget the trigger). Changing the trigger is rejected if it collides with another subsequence on the same campaign.

pipeline.updateSubsequenceDeterministic operation

Parameters

workspaceIdOptional · string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
campaignIdRequired · string
See the input schema for this field.
subsequenceIdRequired · string
See the input schema for this field.
triggerOptional · string
See the input schema for this field.interested_reply · meeting_request · no_reply · custom_tag
triggerTagOptional · string
See the input schema for this field.
nameOptional · string
See the input schema for this field.
enabledOptional · boolean
See the input schema for this field.
triggerConfigOptional · object
See the input schema for this field.
workflowDefinitionOptional · object
See the input schema for this field.
Request example
await pipeline.updateSubsequence({
  "campaignId": "00000000-0000-4000-8000-000000000000",
  "subsequenceId": "00000000-0000-4000-8000-000000000000"
})
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
    },
    "campaignId": {
      "type": "string"
    },
    "subsequenceId": {
      "type": "string"
    },
    "trigger": {
      "type": "string",
      "enum": [
        "interested_reply",
        "meeting_request",
        "no_reply",
        "custom_tag"
      ]
    },
    "triggerTag": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "enabled": {
      "type": "boolean"
    },
    "triggerConfig": {
      "type": "object",
      "additionalProperties": true
    },
    "workflowDefinition": {
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "campaignId",
    "subsequenceId"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview