fbpx
PUThttps://api.spotinst.io/gcp/gce/group/{GROUP_ID}?accountId={ACCOUNT_ID}

Update one or more attributes in your Elastigroup. This API supports partial updates, so only specific fields can be updated separately.

 

URL Parameters

Parameter Type Description
GROUP_ID * String

The Elastigroup id you want to update

Example: sig-12345
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Example #1 - Update Capacity Attribute

Headers
{
	"Content-Type": "application/json",
	"Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "group": {
    "capacity": {
      "target": 0,
      "minimum": 0,
      "maximum": 0
    }
  }
}
Response - 200

Headers
{
	"Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "4a0d5084-0b41-4255-82e5-d64a8232d7cc",
    "url": "/gcp/gce/group/",
    "method": "PUT",
    "time": "2015-06-28T15:52:45.772Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    }
  }
}