---
title: "Commit CVM update (token-based, no auth required)"
method: POST
path: "/api/v1/cvms/{cvm_id}/commit-update"
tags: ["CVMs"]
---

# Commit CVM update (token-based, no auth required)

`POST /api/v1/cvms/{cvm_id}/commit-update`

Completes a two-phase CVM update using a one-time commit token. The token was generated during a prepare-only PATCH request. No workspace authentication is required — the commit token is the credential.

## Path parameters

- `cvm_id` string, required

## Query parameters

- `token` string, nullable — Commit token (alternative to body.token)

## Request body

- CommitUpdateRequest
  - `token` string — Commit token (can also be passed as ?token= query param)
  - `compose_hash` string — Compose hash from Phase 1. If omitted, auto-read from commit token.
  - `transaction_hash` string — Transaction hash proving on-chain registration. Leave empty or use 'already-registered' if the hash was already registered on-chain.

## Response `202`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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