---
title: "Adds a workflow action to a workflow step"
method: POST
path: "/api/v1/workflow/steps/{stepId}/actions"
tags: ["Workflow"]
---

# Adds a workflow action to a workflow step

`POST /api/v1/workflow/steps/{stepId}/actions`

Assigns a single [workflow action](https://www.dotcms.com/docs/latest/managing-workflows#Actions) to a [workflow step](https://www.dotcms.com/docs/latest/managing-workflows#Steps). Returns "Ok" on success.

## Path parameters

- `stepId` string, required

## Request body

- WorkflowActionStepForm
  - `actionId` string, required

## Response `200`

Workflow action added to step successfully

- ResponseEntityStringView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` string
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request
- `401` — Invalid User
- `403` — Forbidden
- `406` — Not Acceptable
- `415` — Unsupported Media Type
- `500` — Internal Server Error

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
