LogoFreestyle
API Reference/V m

Put_file

Put file to VM

PUT/v1/vms/{vm_id}/files/{filepath}

Request Body

application/jsonRequired
contentRequiredstring

Path Parameters

vm_idRequiredstring

The ID of the VM to put the file to

filepathRequiredstring

The path of the file to put

Response Body

curl -X PUT "https://api.freestyle.sh/v1/vms/<string>/files/<string>" \
  -H "Content-Type: application/json" \
  -d '{
    "content": "string"
  }'

Freestyle AI

Documentation assistant

Experimental: AI responses may not always be accurate—please verify important details with the official documentation.

How can I help?

Ask me about Freestyle while you browse the docs.