---
title: "Update a mount or unmount"
method: POST
path: "/v1/cloud-storage/mount-tasks/{id}"
tags: ["Cloud Storage"]
---

# Update a mount or unmount

`POST /v1/cloud-storage/mount-tasks/{id}`

This operation allows performing an action on an ongoing mount task.

## Path parameters

- `id` integer, required

## Request body

- UpdateMountTaskBody
  - `action` 'ACTION_PREPARE' | 'ACTION_EXECUTE' | 'ACTION_FINISH' | 'ACTION_CANCEL', required

## Response `201`

OK

- UpdateMountTaskResponse

## Other responses

- `401` — Unauthenticated.
- `404` — Not Found
- `500` — Internal Server Error. Reach out to support.
- `default` — An unexpected error response.

---

[API](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api.md) · [All operations](https://skmtc.dev/redpanda-data/apis/redpanda-cloud-data-plane-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/redpanda-data/redpanda-cloud-data-plane-api/revisions/7eef0bcc42e7/schema)
