PUThttps://api.spotinst.io/setup/account/{ACCOUNT_ID}?accountId=OPTIONAL

Update information in an account such as the account name and slack channel.

To use this command, permissions for organization admin are required. Granular permissions will require access policies with the following actions:
setup:updateAccount

URL Parameters

Parameter Type Description
ACCOUNT_ID * String

The Spot accountId of the account to be updated.

Request - Change the account name and add Slack channels

Headers
Copied!
Downloaded!
{
    "Authorization": "Bearer ${token}",
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
	"account": {
		"slackNotificationChannels": ["https://hooks.slack.com/services/SLACK_ID", "https://hooks.slack.com/services/SLACK_ID"],
        "name": "ACCOUNT_NAME"
	}
}

Body Attributes


Attribute Type Description
account * Object

Used for updating items in an account.

account.name String

The new name of the account. Cannot be null or empty.

account.slackNotificationChannels Array<String>

List of strings containing the URLs of the slack channels to be added.

Example: https://hooks.slack.com/services/SLACK_ID
Response - 200

Headers
Copied!
Downloaded!
{
    "Content-Type": "application/json"
}
Body
Copied!
Downloaded!
{
  "status": {
    "code": 200,
    "message": "OK"
  }
}