fbpx
PUThttps://api.spotinst.io/events/subscription/{SUBSCRIPTION_ID}?accountId={ACCOUNT_ID}

Update existing notification

URL Parameters

Parameter Type Description
SUBSCRIPTION_ID String

The subscription you want to update

Example: sis-123456
ACCOUNT_ID String

Your Spotinst accountId associated with your token

Example: act-123abc
Request - Update Endpoint

Headers
{ 
  "Content-Type": "application/json",
  "Authorization": "Bearer ${token}"
}
Body
Copied!
Downloaded!
{
  "subscription": {
    "endpoint": "SNS_TOPIC_ARN"
  }
}
Response - 200

Headers
{
  "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "request": {
    "id": "7d54311a-f011-448e-998b-31b75f274428",
    "url": "/events/subscription/sis-7a55c6e8",
    "method": "PUT",
    "timestamp": "2015-08-04T12:31:26.567Z"
  },
  "response": {
    "status": {
      "code": 200,
      "message": "OK"
    },
    "affectedRows": 1
  }
}