Skip to main content
POST
Disable a sequence
Turns the sequence off. Nothing is finished or deleted, so enabling it again picks up exactly where it stopped.

What changes

  • Every active enrollment becomes paused, with pause_reason set to sequence_disabled and no due time. The response’s paused is how many.
  • Open tasks from the sequence go on hold: they disappear from reps’ queues and cannot be completed, and call tasks are taken out of reps’ dial lists.
  • pending enrollments stay pending, and enrollments a rep paused by hand stay paused.
Enabling again resumes the enrollments this call paused and returns the held tasks to their reps.

Example

The response holds the sequence, now with enabled: false, and paused, the number of enrollments this call paused.

Things to know

  • Disabling a sequence that is already disabled returns paused: 0 and changes nothing, so a retry is safe.
  • Disabling does not unlock reordering or deleting steps, or deleting the sequence. Those are refused while enrollments are paused, too.
  • user_id must be the author, the team owner or a team admin.

Authorizations

x-api-key
string
header
required

Team-scoped API key generated in the Salesfinity dashboard under Settings → Connections → API & Webhooks. A missing or invalid key returns HTTP 403.

Headers

Idempotency-Key
string

Makes this write safe to retry. Send a unique value, such as a UUID, and send the same value again when you retry the same request. A retry with the same key and the same request (method, path including the query string, and JSON body) returns the original successful response without acting twice. The same key with a different body or path returns 409, and so does a retry while the first request is still running; that one is safe to repeat after a moment. A request that fails frees its key, so a retry runs the write again: after a 5xx on a create, confirm with a GET before retrying. Keys are kept for 24 hours and are scoped to your team.

Path Parameters

id
string
required

24-character sequence id.

Body

application/json
user_id
string
required

The team member this call acts as. Must be an active member of the team the API key belongs to.

Example:

"507f1f77bcf86cd799439011"

Response

The sequence and how many enrollments were paused.

sequence
object
required

A Sequencer sequence (a cadence). can_manage is returned by list and get only; step_type_counts and enrollment_counts by list only.

Example:
paused
integer
required

Enrollments moved from active to paused. 0 when the sequence was already disabled.