POST
/
instances
/
{id}
/
update
curl --request POST \
  --url https://api.shadeform.ai/v1/instances/{id}/update \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "name": "cool-gpu-server",
  "auto_delete": {
    "date_threshold": "2006-01-02T15:04:05-07:00",
    "spend_threshold": "3.14"
  },
  "alert": {
    "date_threshold": "2006-01-02T15:04:05-07:00",
    "spend_threshold": "3.14"
  },
  "tags": [
    "tag1"
  ]
}'

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

The instance id

Body

application/json
name
string

The name of the instance

auto_delete
object

Set a date or spend threshold to automatically delete the instance

alert
object

Set a date or spend threshold to receive an email alert

tags
string[]

Add custom, searchable tags to instances.