---
title: "Redeploy app from a specific revision"
method: POST
path: "/api/v1/apps/{app_id}/revisions/{revision_id}/redeploy"
tags: ["Apps"]
---

# Redeploy app from a specific revision

`POST /api/v1/apps/{app_id}/revisions/{revision_id}/redeploy`

Redeploy a CVM to a specific revision. If the app has exactly one CVM, it will be redeployed by default. If the app has multiple CVMs, you must specify target vm_uuids in request body. This schedules async CVM update task(s).

## Path parameters

- `app_id` string, required — Hex app identifier
- `revision_id` string, required

## Query parameters

- `transaction_hash` string, nullable — Optional transaction hash proving on-chain compose hash registration

## Request body

- RedeployRevisionRequest
  - `vm_uuids` string[], nullable

## Response `202`

Activation initiated

- unknown

## Other responses

- `401` — Not authenticated
- `403` — No workspace access
- `404` — App or revision not found
- `409` — Another operation is in progress
- `422` — Validation Error
- `465` — Compose hash registration required (contract-owned KMS)

---

[API](https://skmtc.dev/phala/apis/phala-cloud-api.md) · [All operations](https://skmtc.dev/phala/apis/phala-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phala/phala-cloud-api/revisions/83c6ae62e860/schema)
