latestOpenAPI 3.1.02026-08-171503582.2 MB

6199a9464227

Workflows

Duplicate a workflow

Creates a new workflow as a copy of the source workflow at a given revision. All body fields are optional — send {} to use defaults. revisionId defaults to the source workflow's latest published revision; name defaults to "Copy of <original>"; folderId defaults to the source workflow's folder.

post/workflows/{workflowId}/duplicate

Path parameters

workflowIdstring required

The ID of the Workflow

Request body

revisionIdstring
namestring

Display name.

folderIdstring

The ID of the Folder.

Response

Example response

{
  "data": {
    "audit": {
      "createdBy": {
        "id": "naAJxoDIuwdgNsQHGRRGqA",
        "email": "jane.doe@example.com",
        "username": "Jane Doe"
      },
      "updatedBy": {
        "id": "naAJxoDIuwdgNsQHGRRGqA",
        "email": "jane.doe@example.com",
        "username": "Jane Doe"
      }
    },
    "links": [
      {
        "href": "https://api.process.st/api/v1.1/resource/XXX"
      }
    ]
  },
  "links": [
    {
      "href": "https://api.process.st/api/v1.1/resource/XXX"
    }
  ]
}