Gamma API

Change a member's email

PATCH
/api/organizations/{slug}/security/members/{memberId}/email

Only for a member whose address is at a domain this organization's SSO holds (403 otherwise, and for a guest), whose owner can't change it. The new address may be at any domain but one another organization's SSO holds, here or in another region (409), or another account's (409). Verified when one of this organization's SSO domains covers it.

Who may call it: An owner or security admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Host- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

memberId*string

Request Body

application/json
  1. body
email*string
Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
Lengthlength <= 254

Response Body

OK.

application/json
  1. response
email*string
Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
emailVerified*boolean

True when one of the organization's SSO domains covers the address; otherwise its owner confirms it.

Example Request
curl -X PATCH 'http://localhost:3000/api/organizations/string/security/members/string/email' \  -H 'Content-Type: application/json' \  -d '{  "email": "user@example.com"}'
Example Response
{  "email": "user@example.com",  "emailVerified": true}