---
title: "Creates a new action for an automation."
method: POST
path: "/projects/{projectId}/automations/{automationId}/actions"
tags: ["projectAutomations"]
---

# Creates a new action for an automation.

`POST /projects/{projectId}/automations/{automationId}/actions`

Creates a new action including its values for an automation. Actions cannot be added to automations created from a workflow.
            <Check title="Required Permissions" icon="key">The user must be owner of the project or must have `project-master-data:write` permissions on the specified project.</Check>

## Path parameters

- `projectId` 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/versions/f784a53f60df/schema)
