POST
/
auth
/
email-addresses
/
make-primary
Make an EmailAddress the primary EmailAddress for a User
curl --request POST \
  --url https://api.pxyz.dev/api/v0/auth/email-addresses/make-primary \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "<string>"
}'
{
  "id": "<string>",
  "tenantId": "<string>",
  "userId": "<string>",
  "email": "jsmith@example.com",
  "verifiedAt": "2023-11-07T05:31:56Z",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Body

application/json
id
string
required

Response

Successful response

id
string
required
tenantId
string
required
email
string<email>
required
verifiedAt
string<date-time> | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
userId
string | null