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.
Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>
A successful response.