---
title: "Can I override the default Cloud Actions when triggering a code deployment through Cloud API?"
date: "2025-02-04T14:47:45+00:00"
summary: "Override default Cloud Actions for code deployment with custom IDs. Use API or Acquia CLI to specify actions and retrieve IDs."
image:
type: "article"
url: "/acquia-cloud-platform/help/61201-can-i-override-default-cloud-actions-when-triggering-code-deployment-through-cloud-api"
id: "9b375773-4ad9-4d8b-8b5f-aea914f4fee2"
---

Yes, use the `cloud_actions` parameter with one or more Cloud Action IDs when sending a request to the [Deploy code endpoint](https://dev.acquia.com/api-documentation/acquia-cloud-platform-api#operation/postEnvironmentsDeployCode). You can also use [Acquia CLI](/acquia-cloud-platform/add-ons/acquia-cli) to do this:

`acli api:environments:code-deploy myapp.dev myapp.test --cloud-actions="[ID1, ID2]""`

To get a list of all Cloud Actions and their IDs, run:

`acli api:environments:cloud-actions-find [myapp.dev]`