CustomDomain Docs
API referenceAPI referenceMembers

A member's email change was confirmed (console server)

A member's email change was confirmed (console server): CustomDomain™ API reference in the members group. Covers parameters, request body and responses.

POST
/members:email-changed

The console's server calls this once a person's email change is confirmed, guarded by the provision secret like POST /tenants:provision. email is the member's new address. With old_email, the control plane moves the person's member row in that workspace to it and says how many rows it moved in updated; without it, the row is taken as already moved. It may also update related records, best effort.

Authorization

provisionSecret
X-Provision-Secret<token>

Narrow secret held by the customer console's server, for signup provisioning and its other server to server calls (also accepted as a Bearer token, except on POST /audit, where a Bearer is always a tenant credential).

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/members:email-changed" \  -H "Content-Type: application/json" \  -d '{    "tenant_id": "string",    "email": "string"  }'
{  "ok": true,  "updated": 0}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}
{  "code": "account_not_verifiable",  "title": "string",  "details": "string",  "request_id": "string",  "challenge": {    "value": "string",    "bits": 1,    "expires_at": "2019-08-24T14:15:22Z"  }}