cURL
curl --request POST \ --url https://rest.compute.cudo.org/v1/projects/{projectId}/vm/{id}/expire-time \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "expireTime": "2023-11-07T05:31:56Z", "ttl": "<string>" } '
{ "expireTime": "2023-11-07T05:31:56Z" }
Updates the expiration time of a virtual machine. The virtual machine will be automatically deleted when it reaches its expiration time.
API key authentication. API keys should be passed using the format Bearer API_KEY.
Bearer API_KEY
A successful response.