---
title: "Execute a runtime operation"
method: POST
path: "/projects/{projectId}/environments/{environmentId}/deployments/{deploymentId}/operations"
tags: ["Runtime Operations"]
---

# Execute a runtime operation

`POST /projects/{projectId}/environments/{environmentId}/deployments/{deploymentId}/operations`

Execute a runtime operation on a currently deployed environment. This allows you to run one-off commands, such as rebuilding static assets on demand, by defining an `operations` key in a project's `.upsun/config.yaml` configuration. More information on runtime operations is [available in our user documentation](https://docs.upsun.com/anchors/app/runtime-operations/).

## Path parameters

- `projectId` string, required
- `environmentId` string, required
- `deploymentId` string, required

## Request body

- EnvironmentOperationInput
  - `service` string, required — The name of the application or worker to run the operation on
  - `operation` string, required — The name of the operation
  - `parameters` string[], required — The parameters to run the operation with

## Response `default`

- AcceptedResponse
  - `status` string, required — The status text of the response
  - `code` integer, required — The status code of the response

---

[API](https://skmtc.net/upsun/apis/upsun-com-rest-api.md) · [All operations](https://skmtc.net/upsun/apis/upsun-com-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/upsun/upsun-com-rest-api/revisions/6cc88fde6435/schema)
