Skip to content

Requests that the users login email address will be changed.

PATCH
/api/user/{userId}/email

This does not permanently change the address yet, but sends
out the confirmation email. Every user can change their own email address.
Changing someone elses address requires certain permissions.

Authorizations

Parameters

Path Parameters

userId*
Typestring
Required

Request Body

JSON
{
"email": "string",
"password": "string"
}

Responses

Success

Samples

cURL
curl -X PATCH http://localhost/api/user/{userId}/email
JavaScript
fetch("http://localhost/api/user/{userId}/email", { method: "PATCH" })
  .then(response => response.json())
  .then(data => console.log(data));
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://localhost/api/user/{userId}/email");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PATCH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Python
import requests
response = requests.patch("http://localhost/api/user/{userId}/email")
print(response.json())