Skip to main content

Delete an account's alternate contact

DELETE 

/accounts/:accountId/contacts/:type

Removes one of an AWS account's three alternate contacts, mapping onto the AWS DeleteAlternateContact call.

The contact is removed at AWS and cannot be recovered from here. Prism keeps no copy: read it with POST /accounts/{accountId}/contacts/get first if you might want it back. Removing the billing contact means AWS billing notices for the account go to the root email instead.

Returns 200 with an envelope, not 204, and sends no body content of its own.

This is the route DELETE .../contacts/primary falls into. No delete route is registered for primary, so that request arrives here with type set to primary and is forwarded upstream, where it fails as a 502. There is no operation that deletes the primary contact; it can only be replaced, through PUT /accounts/{accountId}/contacts/primary.

Like the other five contacts operations, this one is a proxy to CloudKeeper's ops-service, is present on every deployment, and reports every upstream failure as a 502; see POST /accounts/{accountId}/contacts/get for the full explanation.

Request​

Responses​

The ops-service accepted the deletion. The response carries no data.

Note that this says nothing about whether the contact existed beforehand: how a delete of an unset contact is reported is the ops-service's decision, not Prism's, and if it refuses you will see a 502 rather than a 404.

message is the fixed string Alternate contact deleted.