Skip to main content
PATCH
/
api
/
v1
/
cvms
/
{cvm_id}
/
pre-launch-script
Update pre-launch script
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>"
    }
  ]
}

Headers

X-Compose-Hash
string | null

Compose hash from Phase 1 response

X-Transaction-Hash
string | null

Transaction hash proving on-chain registration

Path Parameters

cvm_id
string
required

Body

multipart/form-data
file
file | null

Shell script file to upload

Response

Update initiated, track via correlation_id