LogoFreestyle
API Reference/V m

Optimize_vm

Suspends a VM and reallocates storage for more efficent copy.

POST/v1/vms/{vm_id}/optimize

Path Parameters

vm_idRequiredstring

The ID of the VM to optimize

Response Body

curl -X POST "https://api.freestyle.sh/v1/vms/<string>/optimize"

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.