Skip to main content
POST
Duplicate 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

The workflow (wf_wf_…) to copy, in any status. Another team's is 403.

Required string length: 18
Pattern: ^wf_wf_

Body

application/json

Request body of duplicate_workflow.

name
string

The copy's name; {{name}} in it stands for the original's ("{{name}} (copy)" when left out). Made free in the team: "name 2", "name 3", ...

Required string length: 1 - 255
playtable_sid
string

The table the copy is homed on (pt_tb_…); the original's own when left out. Unknown or deleted → 422 validation_failed on playtable_sid; another team's → 403.

Required string length: 18
Pattern: ^pt_tb_
dry_run
boolean

true: answer result.missing_columns for that table and write nothing (item null).

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
object | null
required
result
object
required
meta
object
required