---
title: "Copies automations from one workflow to another."
method: POST
path: "/workflows/automations/copy"
tags: ["workflowAutomations"]
---

# Copies automations from one workflow to another.

`POST /workflows/automations/copy`

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Headers

- `Authorization` string, required

## Request body

- CopyWorkflowAutomationsForm
  - `sourceWorkflowId` string, uuid, required — The workflow the automations will be copied from.
  - `targetWorkflowId` string, uuid, required — The workflow the automations will be copied to.

## Response `200`

OK

- Automation[]
  - `id` string, uuid — The id of the automation.
  - `createdBy` string, uuid — The id of the user who created the automation.
  - `createdOn` string, date-time — The date the automation was created.
  - `updatedBy` string, uuid — The id of the user who updated the automation.
  - `updatedOn` string, date-time — The date the automation was updated.
  - `triggerId` string, uuid — The id of the trigger which is related to the automation.
  - `trigger` Trigger
    - `updatedOn` string, date-time — The date the trigger was updated.
    - `type` string, nullable — The type of the trigger.
    - `values` TriggerValue[], nullable — The values of the trigger.
      - `name` string, nullable — The name of the trigger value.
      - `value` string, nullable — The value of the trigger value.
  - `enabled` boolean — Whether the automation is enabled.
  - `state` string, nullable — The state of the automation. See AutomationsService.DAL.Models.AutomationState for the possible values.
  - `createdByProjectTemplate` boolean — Whether the automation was created from an automation template of a project template.
  - `projectId` string, uuid, nullable — The id of the project which is related to the automation.
  - `projectTemplateId` string, uuid, nullable — The id of the project template which is related to the automation.
  - `actions` Action[], nullable — The actions which is related to the automation.
    - `id` string, uuid — The id of the action.
    - `createdBy` string, uuid — The id of the user who created the action.
    - `createdOn` string, date-time — The date the action was created.
    - `updatedBy` string, uuid — The id of the user who updated the action.
    - `updatedOn` string, date-time — The date the action was updated.
    - `type` string, nullable — The type of the action.
    - `order` number, double, nullable — The order of the action.
    - `values` ActionValue[], nullable — The values of the action.
      - `name` string, nullable — The name of the action value.
      - `value` string, nullable — The value of the action value.
  - `workflowId` string, uuid, nullable — The workflow this automation belongs to, if any.
  - `createdByAutomationIdFromWorkflow` string, uuid, nullable — The id of the workflow automation that served as the template for this automation.
  - `failed` ErrorResponse — The API error response.
    - `code` string, required — The error code.
    - `description` string, required — The description of the error.
    - `link` string, required — The link to the API documentation page.
    - `details` string[], nullable — A list of details describing the error.
    - `validationErrors` ValidationErrorResponse[], nullable — If a validation error occurred, this contains the validation errors for each property.
      - `property` string, nullable — The name of the property that failed validation.
      - `message` string, nullable — The reason why this property failed validation.
    - `traceId` string, nullable — The request trace id for tracking the request.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
