Skip to main content
POST
/
v2
/
workflows
/
{id}
/
duplicate
Duplicate Workflow
curl --request POST \
  --url https://public.api.serval.com/v2/workflows/{id}/duplicate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "targetTeamId": "<string>"
}'
{
  "data": {
    "id": "<string>",
    "teamId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "type": "WORKFLOW_TYPE_UNSPECIFIED",
    "executionScope": "WORKFLOW_EXECUTION_SCOPE_UNSPECIFIED",
    "requireFormConfirmation": true,
    "isTemporary": true,
    "content": "<string>",
    "parameters": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
targetTeamId
string | null

Response

Success

data
object