Replaces the pre-launch script and restarts the CVM. For contract-owned KMS, requires two-phase flow with on-chain hash registration.
cURL
curl --request PATCH \ --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/pre-launch-script \ --header 'Content-Type: multipart/form-data' \ --form 'file=<string>' \ --form file.0='@example-file'
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>" } ] }
Compose hash from Phase 1 response
Transaction hash proving on-chain registration
Shell script file to upload
Update initiated, track via correlation_id
Was this page helpful?