Skip to main content

Confirm a root email change

POST 

/accounts/:accountId/contacts/email/accept

Completes the root email change started by POST /accounts/{accountId}/contacts/email/start, by presenting the one-time code AWS sent to the new address.

On success the AWS account's root email is changed, immediately and irreversibly from here. Signing in as the account root, and every future password reset, now go through the new address. Changing it back means running the whole two-step flow again from the new mailbox, which is only possible if someone can still receive mail there.

Prism's own record of the account is not updated by this. Nothing under /aws-accounts reflects the root email; it lives at AWS and is read back through POST /accounts/{accountId}/contacts/get.

A wrong or expired code is a 502, not a 400. Prism validates nothing here (not the code, not the address), so every rejection comes from upstream and arrives with the upstream status discarded. A 502 from this operation is far more likely to mean "wrong code" than "the service is down"; read message before assuming an outage. Restart from .../email/start to get a fresh code.

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 root email was changed at AWS. Prism's own record of the account is unchanged, because it never held the root email.

There is no data, and message is the fixed string Root email updated successfully.