Skip to main content
PATCH
/
api
/
v1
/
cvms
/
{cvm_id}
/
docker-compose
Update Docker Compose file
curl --request PATCH \
  --url https://cloud-api.phala.com/api/v1/cvms/{cvm_id}/docker-compose \
  --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

Docker Compose YAML file to upload

Response

Update initiated, track via correlation_id