---
title: "Update action"
method: PUT
path: "/actions/{actionId}"
tags: ["actions"]
---

# Update action

`PUT /actions/{actionId}`

Updates the details of the action identified by the given `actionId`. The `source` of an existing action cannot be changed.

## Path parameters

- `actionId` string, required

## Query parameters

- `workspaceId` integer

## Request body

- UpdateActionRequest
  - `bucket` BucketActionRequest
    - `dataLinkId` string
    - `datasetId` string
    - `events` string[]
    - `filter` string
    - `markerFile` string
  - `cron` CronActionRequest
    - `expression` string
    - `preset` string
    - `timezone` string
  - `launch` WorkflowLaunchRequest
    - `commitId` string
    - `computeEnvId` string
    - `configProfiles` string[]
    - `configText` string
    - `dateCreated` string, date-time
    - `entryName` string
    - `headJobCpus` integer
    - `headJobMemoryMb` integer
    - `id` string
    - `labelIds` integer[]
    - `launchContainer` string
    - `mainScript` string
    - `nextflowVersion` string, nullable — Nextflow release version to run this workflow with; must exist in the system catalog and satisfy the minimum configured for the compute environment's type.
    - `optimizationId` string
    - `optimizationTargets` string
    - `outputDir` string, nullable — Per-run output directory passed as Nextflow -output-dir (requires Nextflow 24.10.0 or later and workflow outputs syntax).
    - `paramsText` string
    - `pipeline` string
    - `pipelineSchemaId` integer
    - `postRunScript` string
    - `preRunScript` string
    - `pullLatest` boolean
    - `resume` boolean
    - `revision` string
    - `runName` string
    - `schemaName` string
    - `sessionId` string
    - `stubRun` boolean
    - `syntaxParser` 'v1' | 'v2', nullable
    - `towerConfig` string
    - `userSecrets` string[]
    - `workDir` string
    - `workspaceSecrets` string[]
  - `name` string

## Response `204`

OK - No content

## Other responses

- `400` — Bad request
- `403` — Operation not allowed

---

[API](https://skmtc.net/seqeralabs/apis/seqera-api.md) · [All operations](https://skmtc.net/seqeralabs/apis/seqera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/seqeralabs/seqera-api/revisions/13316c9fe5ff/schema)
