---
title: "Update an existing workflow action"
method: PUT
path: "/api/v1/workflow/actions/{actionId}"
tags: ["Workflow"]
---

# Update an existing workflow action

`PUT /api/v1/workflow/actions/{actionId}`

Updates a [workflow action](https://www.dotcms.com/docs/latest/managing-workflows#Actions) based on the payload properties.

Returns updated workflow action.

## Path parameters

- `actionId` string, required

## Request body

- WorkflowActionForm
  - `actionId` string
  - `schemeId` string, required
  - `stepId` string
  - `actionName` string, required
  - `whoCanUse` string[]
  - `actionIcon` string
  - `actionAssignable` boolean, required
  - `actionCommentable` boolean, required
  - `showOn` string[], required
  - `actionRoleHierarchyForAssign` boolean, required
  - `actionNextStep` string, required
  - `actionNextAssign` string
  - `actionCondition` string
  - `metadata` object

## Response `200`

Updated workflow action successfully

- ResponseEntityWorkflowActionView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` WorkflowAction
    - `id` string
    - `name` string
    - `schemeId` string
    - `condition` string
    - `nextStep` string
    - `nextAssign` string
    - `icon` string
    - `roleHierarchyForAssign` boolean
    - `assignable` boolean
    - `commentable` boolean
    - `order` integer
    - `saveActionlet` boolean
    - `publishActionlet` boolean
    - `unpublishActionlet` boolean
    - `archiveActionlet` boolean
    - `pushPublishActionlet` boolean
    - `onlyBatchActionlet` boolean
    - `unarchiveActionlet` boolean
    - `deleteActionlet` boolean
    - `destroyActionlet` boolean
    - `moveActionlet` boolean
    - `commentActionlet` boolean
    - `metadata` object
    - `resetable` boolean
    - `nextStepCurrentStep` boolean
    - `moveActionletHashPath` boolean
    - `owner` string
    - `showOn` string[]
    - `hasOnlyBatchActionlet` boolean
    - `hasPublishActionlet` boolean
    - `hasUnpublishActionlet` boolean
    - `hasArchiveActionlet` boolean
    - `hasUnarchiveActionlet` boolean
    - `hasDeleteActionlet` boolean
    - `hasDestroyActionlet` boolean
    - `hasCommentActionlet` boolean
    - `hasResetActionlet` boolean
    - `hasPushPublishActionlet` boolean
    - `hasMoveActionletActionlet` boolean
    - `hasSaveActionlet` boolean
    - `hasMoveActionletHasPathActionlet` boolean
  - `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/anzworldline-solutions/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/anzworldline-solutions/dotcms-rest-api/revisions/0f38cbc3bd36/schema)
