Update Workflow

Update signing workflow

Updates the configuration of a DRAFT signing workflow. Only workflows in DRAFT
status can be modified.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Replace the full configuration of an existing signing workflow. The endpoint overwrites the workflow's name, description, linked template version, default variables, participants, stages, and email notification toggles, then returns the updated workflow. If the workflow was already published, this edit reverts it to draft and clears its published snapshot, so it must be published again before it can be used in new contract requests.

Authentication & access

  • Requires a client API token: Authorization: Bearer <token>.
  • The caller must hold the contracts.workflows.write permission and have the OWNER or OPERATIONS role.
  • Contract signing must be enabled for the client. If it is disabled the request returns 403.

Path parameters

  • workflow_id (string, required) — the ID of the signing workflow to update. Must belong to your client.

Request body

The update replaces the entire workflow definition — send the complete configuration, not a partial patch.

FieldTypeRequiredNotes
namestringyes1–255 characters.
descriptionstringnoUp to 255 characters.
template_version_idstringyesID of the contract template version this workflow uses. Must belong to your client.
variablesobjectnoDefault template variable values applied to contract requests. Defaults to {}.
participantsarrayyesAt least one participant. Each has a unique key (1–64 chars), a source (user, business_customer, client_signing_profile, or external), a role matching a template signer role, optional field_values, and optional readonly_fields. Participant key values must be unique.
stagesarrayyesAt least one stage. Each has an index (sequential, starting at 1), a type (signature or wait_transaction_success), and for signature stages a participant key and a delivery type (link or autosign). wait_transaction_success stages must not set participant or delivery. Stage indexes must be sequential starting from 1.
email_notificationsobjectnoPer-event toggles: invitation, completed, declined, expired (default true), and completed_attach_document, completed_attach_audit_log (default false).

A body that violates these constraints is rejected with 422.

State preconditions & effects

  • A workflow in archived status cannot be updated (400).
  • The referenced template version cannot be archived (400).
  • If the workflow is currently published, a successful update sets its status back to draft and discards the published snapshot. Re-publish the workflow to make the new configuration usable.

Response

200 OK with the full updated workflow, including its id, name, description, template_version_id, current status, variables, participants, stages, email_notifications, published_at, created_at, and updated_at.

Error responses

StatusWhen
400The workflow is archived, or the referenced template version is archived
403Contract signing is disabled for the client
404The workflow or the referenced template version was not found under this client
422Request body failed validation (e.g. duplicate participant keys, non-sequential stage indexes, missing required fields, invalid stage shape)

Standard 401 (authentication), 403 (insufficient permission or role), and 429 (rate limit) responses apply to every endpoint and are documented in the Error reference.

Path Params
string
required
Body Params
string
required
length between 1 and 255
length ≤ 255
string
required

ID of the contract template version this workflow uses

variables
object

Default template variable values applied to contract requests

participants
array of objects
required
length ≥ 1

Participant role definitions for this workflow

Participants*
string
required
length between 1 and 64

Unique key identifying this participant within the workflow

string
enum
required

Source that determines who fills this participant role (e.g. client or end user)

Allowed:
string
required
length between 1 and 255

Signer role name as defined in the contract template

field_values
object

Pre-filled field values for this participant

readonly_fields
array of strings

Field names that this participant cannot modify

Readonly Fields
stages
array of objects
required
length ≥ 1

Ordered signing and wait stages of this workflow

Stages*
integer
required
≥ 1

Sequential stage number, starting from 1

string
enum
required

Stage type — either a signature step or a wait-for-transaction step

Allowed:
length ≤ 64

Participant key assigned to this stage; required for signature stages

SignatureDeliveryType | null

How the signing request is delivered to the participant; required for signature stages

email_notifications
object

Per-event email notification toggles for this workflow

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json