--- title: "Save a draft as a new workflow" description: "Save the draft in the body as a new workflow, named after the draft with\n` (copy)` added. The workflow `id` names is left as it is. Triggers carried\nover from it start switched off, so the copy does not fire next to the\noriginal. This is the way out of a refused update. The impact check names\nthis endpoint in `copyUrl`.\n" source: https://flowdrop.io/docs/api/workflows/copyWorkflow site: FlowDrop documentation --- # Save a draft as a new workflow `POST /workflows/{id}/copy` 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`. ## Parameters - `id` · in path · string · required — UUID of the workflow the draft came from ## Request body The draft, in the shape of the update request. - `application/json` — UpdateWorkflowRequest ## Responses - `201` — The copy was created (`application/json`: WorkflowCopyResponse) - `400` — Bad request - invalid parameters or request body (`application/json`: ErrorResponse) - `404` — Resource not found (`application/json`: ErrorResponse) - `422` — Validation error - request data failed validation (`application/json`: ErrorResponse) - `500` — Internal server error (`application/json`: ErrorResponse) *Tags: Workflows*