Skip to content
API referenceWorkflows

Save a draft as a new workflow

Save the draft in the body as a new workflow, named after the draft with ` (copy)` added. The workflow `id` names is left as it is. Triggers carried over from it start switched off, so the copy does not fire next to the original. This is the way out of a refused update. The impact check names this endpoint in `copyUrl`.

POST
/workflows/{id}/copy

Authorization

AuthorizationBearer <token>

JWT token for authentication

In: header

Path Parameters

id*string

UUID of the workflow the draft came from

Formatuuid

Request Body

application/json

The draft, in the shape of the update request.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/workflows/497f6eca-6276-4993-bfeb-53cbbbba6f08/copy" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true,  "message": "string",  "error": "string",  "data": {    "id": "string",    "label": "string",    "editorUrl": "string",    "triggersSwitchedOff": true  }}