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

## Request

- Base URL: `https://api.awork.com/api/v1`
- URL: `https://api.awork.com/api/v1/projecttemplates/{projectTemplateId}/automations/{automationId}/actions`
- Auth: HTTP bearer

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

## 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

## Changes

- **2026-09-17** `1556e0487867`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `oauth2` was added to the API
- **2026-09-12** `8e46cf415581`: 1 info
  - api operation id `PostProjectTemplateAutomationAction` removed and replaced with `projectTemplateAutomations_PostProjectTemplateAutomationAction`
- **2026-08-21** `a13e7c704262`: 2 breaking
  - the `type` request property's minLength was increased from `0` to `1`
  - the `values/items/name` request property's minLength was increased from `0` to `1`

[Operation history](https://skmtc.dev/awork-io/apis/api-v1-reference/changes/projecttemplates/:projectTemplateId/automations/:automationId/actions/post.md)

---

[API](https://skmtc.dev/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.dev/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc.dev/awork-io/apis/api-v1-reference/revisions/81151fac7e79?raw)
