Subsequences

Update Subsequence

PATCH /v1/sequences/{sequenceId}/subsequence/{subsequenceId}

PATCH/v1/sequences/{sequenceId}/subsequence/{subsequenceId}
PATCH
/v1/sequences/{sequenceId}/subsequence/{subsequenceId}

Update the schedule, entry delay, or conditions of a subsequence

Update the scheduleId, firstStepRelativeDays, and/or conditions on a subsequence. All fields optional — omit to leave unchanged.

Conditions are full-replacement — supplying the field replaces the entire set, it does not append. Supplying conditions: [] is silently ignored by the internal API and does NOT clear conditions.

Response is always {"message": "Subsequence updated successfully"} — call Get Subsequence Settings to read the updated state.

Authorization

x-api-key<token>

API key for Open API authentication

In: header

Request Body

application/jsonRequired

scheduleIdnumber

Replace the current sending schedule. Use GET /v1/schedules to list available IDs.

Example: 60030

firstStepRelativeDaysnumber

Replace the entry delay (days after the trigger before the first step runs). Minimum 1.

Example: 3Minimum: 1

conditionsarray<object>

Replace all current conditions with this new set (full-replacement, not append). Must contain at least 1 item when supplied. Passing conditions: [] is silently ignored by the internal API — does NOT clear conditions.

Example: [{"conditionId":"cond-open-01","name":"Email Open Count","operation":"greater than","value":3},{"name":"Replied","operation":"is","value":false}]

Path Parameters

sequenceIdstring

Hashid-encoded ID of the parent sequence.

subsequenceIdstring

Hashid-encoded ID of the subsequence to update.

Responses

200
Subsequence updated successfully

Request

curl -X PATCH \
  "https://open-api.saleshandy.com/v1/sequences/{sequenceId}/subsequence/{subsequenceId}" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "scheduleId": 60030,
  "firstStepRelativeDays": 3,
  "conditions": [
    {
      "conditionId": "cond-open-01",
      "name": "Email Open Count",
      "operation": "greater than",
      "value": 3
    },
    {
      "name": "Replied",
      "operation": "is",
      "value": false
    }
  ]
}'

Response

No response body