---
title: "Creates a new action for an automation of a project template."
method: POST
path: "/projecttemplates/{projectTemplateId}/automations/{automationId}/actions"
tags: ["projectTemplateAutomations"]
---

# Creates a new action for an automation of a project template.

`POST /projecttemplates/{projectTemplateId}/automations/{automationId}/actions`

Creates an action for a specific automation of a project template including all its values. Actions cannot be added to automations created from a workflow.

<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>

## Path parameters

- `projectTemplateId` string, uuid, required
- `automationId` string, uuid, required

## Headers

- `Authorization` string, required

## Request body

- ActionForm
  - `type` string, required — The type of the action.
  - `order` number, double, nullable — The order of the action.
  - `values` ActionValuePostForm[], required — The values of the action.
    - `name` string, required — The name of the action value.
    - `value` unknown, required

## Response `200`

OK

- Action
  - `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.

## Other responses

- `400` — Bad 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/revisions/f784a53f60df/schema)
