Clone as custom
POST
/api/v1/workflows/{id}/clone
const url = 'https://dashboard.justcrawl.io/api/v1/workflows/example/clone';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.justcrawl.io/api/v1/workflows/example/clone \ --header 'Authorization: Bearer <token>'Clone a workflow as a non-smart custom draft.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
The workflow ID to clone.
Responses
Section titled “ Responses ”The cloned workflow.
Media type application/json
object
workflowId
string format: uuid
name
string
status
string
version
integer
route
string
dag
object
nodes
required
Array<object>
object
id
required
string
type
required
string
config
object
edges
required
Array<object>
object
id
required
string
from
required
string
to
required
string
type
required
string
costPerThousand
number
smart
object
strategy
string
mode
string
domain
string
hasPendingSuggestion
boolean
createdAt
string format: date-time
Example
{ "status": "draft", "dag": { "nodes": [ { "type": "entry" } ], "edges": [ { "type": "default" } ] }, "smart": { "strategy": "success", "mode": "auto" }}Workflow not found.