LogoFreestyle
API ReferenceVm

Put_file

Put file to VM

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

Path Parameters

vm_id*string

The ID of the VM to put the file to

filepath*string

The path of the file to put

Request Body

application/json

content*string

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://api.freestyle.sh/v1/vms/string/files/string" \  -H "Content-Type: application/json" \  -d '{    "content": "string"  }'
{}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "string"
}
{
  "error": "string",
  "message": "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.