Skip to main content
PATCH
Update workflow

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Path Parameters

sid
string
required

Workflow sid (wf_wf_…).

Required string length: 18
Pattern: ^wf_wf_

Body

application/json

Request body of update_workflow.

playtable_sid
string

Move the workflow to another home playtable (draft only; the sources and step references must still resolve at publish).

Required string length: 18
Pattern: ^pt_tb_
name
string

New campaign name (1..255), unique per team.

Required string length: 1 - 255
description
string | null

null resets the description.

Maximum string length: 2000
draft_steps
object[]

FULL-REPLACE of the working copy. Carry ids of kept steps verbatim; omit ids on new steps (assigned from step_id_seq). Dropping the id of an unchanged step risks a possible_lost_identity warning.

schedule
object | null

Full-replace; null clears the windows (any time).

on_reply
enum<string>

Applies to the next replies and to the threads the workflow acts on from now on; a thread already stamped keeps its automation mode until the next report.

Available options:
autopilot,
copilot,
stop,
continue
agent_sid
string | null

Pick the AI SDR for the threads this workflow starts (ub_ag_…); null = back to its table's pick. Reaches the open threads it started at their next turn.

Required string length: 18
Pattern: ^ub_ag_
sender_profile_sids
string[]

Full-replace of the pool (existence-checked); already-pinned records keep their sender.

Required string length: 18
Pattern: ^ub_sp_
rotation_strategy
enum<string>

Applies to future enrollments only.

Available options:
fair,
random,
new_sender,
prior_engagement
priority
integer

New share of a shared sender profile: 1..3 (low / medium / high), never a rank.

Required range: 1 <= x <= 3
status
enum<string>

Archive family only: archived (from draft|paused); paused = unarchive (requires a published version); draft = unarchive (if never published). Transitions involving active → 422 invalid_transition (use pause/resume).

Available options:
archived,
paused,
draft

Response

update success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
update
item
object
required
updated_fields
string[]
required
previous_values
object
required
meta
object
required
kept_fields
string[]

The fields this write did not change because the person's own value stands on them (stamped person); read the item for what landed.