Skip to main content
POST
/
v1
/
workflows
/
{workflowID}
/
clone
Clone a workflow
curl --request POST \
  --url https://api.strait.dev/v1/workflows/{workflowID}/clone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "project_id": "<string>",
  "slug": "<string>"
}
'
{
  "created_at": "2023-11-07T05:31:56Z",
  "enabled": true,
  "id": "<string>",
  "name": "<string>",
  "project_id": "<string>",
  "slug": "<string>",
  "steps": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "depends_on": [
        "<string>"
      ],
      "id": "<string>",
      "on_failure": "<string>",
      "step_ref": "<string>",
      "workflow_id": "<string>",
      "approval_approvers": [
        "<string>"
      ],
      "approval_timeout_secs": 123,
      "compensation_job_id": "<string>",
      "compensation_timeout_secs": 123,
      "concurrency_key": "<string>",
      "condition": "<unknown>",
      "cost_gate_default_action": "<string>",
      "cost_gate_threshold_microusd": 123,
      "cost_gate_timeout_secs": 123,
      "event_emit_key": "<string>",
      "event_key": "<string>",
      "event_notify_url": "<string>",
      "event_timeout_secs": 123,
      "expected_duration_secs": 123,
      "job_id": "<string>",
      "max_nesting_depth": 123,
      "output_transform": "<string>",
      "payload": "<unknown>",
      "resource_class": "<string>",
      "retry_backoff": "<string>",
      "retry_initial_delay_secs": 123,
      "retry_max_attempts": 123,
      "retry_max_delay_secs": 123,
      "sleep_duration_secs": 123,
      "stage_notifications": "<unknown>",
      "step_type": "<string>",
      "sub_workflow_id": "<string>",
      "timeout_secs_override": 123
    }
  ],
  "updated_at": "2023-11-07T05:31:56Z",
  "version": 123,
  "$schema": "<string>",
  "backwards_compatible": true,
  "created_by": "<string>",
  "cron": "<string>",
  "cron_timezone": "<string>",
  "description": "<string>",
  "max_concurrent_runs": 123,
  "max_parallel_steps": 123,
  "skip_if_running": true,
  "tags": {},
  "timeout_secs": 123,
  "updated_by": "<string>",
  "version_id": "<string>",
  "version_policy": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.strait.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key passed as Bearer token

Path Parameters

workflowID
string
required

Body

application/json
name
string
project_id
string
slug
string

Response

OK

created_at
string<date-time>
required
enabled
boolean
required
id
string
required
name
string
required
project_id
string
required
slug
string
required
steps
object[] | null
required
updated_at
string<date-time>
required
version
integer<int64>
required
$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://api.strait.dev/schemas/WorkflowResponse.json"

backwards_compatible
boolean
created_by
string
cron
string
cron_timezone
string
description
string
max_concurrent_runs
integer<int64>
max_parallel_steps
integer<int64>
skip_if_running
boolean
tags
object
timeout_secs
integer<int64>
updated_by
string
version_id
string
version_policy
string