CVMs
Update CVM
Changed onUnified PATCH endpoint for CVM updates. Only fields present in the request body are applied. Handles resource resize, compose configuration, visibility, environment, and OS image updates. For contract-owned KMS, compose-hash-affecting changes require two-phase flow with on-chain hash registration.
patch/api/v1/cvms/{cvm_id}
Request
- Base URLhttps://cloud-api.phala.com
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
cvm_idstring required
Headers
X-Compose-Hashstring nullable
Compose hash from Phase 1 response (Phase 2 only)
X-Transaction-Hashstring nullable
Transaction hash proving on-chain registration (Phase 2 only)
X-Prepare-Onlystring nullable
When 'true', generate a commit token for multisig workflows instead of expecting immediate on-chain registration
Request body
Response
Update initiated, track via correlation_id
unknown required
Changes
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info