Skip to main content
POST
/
v1
/
projects
/
{projectId}
/
vm
/
{id}
/
expire-time
Update virtual machine expiration time
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"
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers-- Authorization: Bearer <api_key>

Path Parameters

projectId
string
required
id
string
required

Body

application/json
expireTime
string<date-time>
ttl
string

Response

A successful response.

expireTime
string<date-time>