Change your mail address
PUT/signup/ email/
v2
PUT
deprecated-user-change-email
Request
Responses
Usage examples
- cURL
- JavaScript SDK
- PHP SDK
$ curl \
--fail \
--location \
-X PUT \
-d '{"email":"ada.lovelace@example.com"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/signup/email
import { MittwaldAPIV2Client } from "@mittwald/api-client";
import { assertStatus } from "@mittwald/api-client-commons";
const client = MittwaldAPIClient.newWithToken(process.env.MITTWALD_API_TOKEN);
const response = await client.user.deprecatedUserChangeEmail({
"data": {
"email": "ada.lovelace@example.com"
}
});
assertStatus(response, 200);
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserChangeEmail\DeprecatedUserChangeEmailRequest;
use \Mittwald\ApiClient\Generated\V2\Clients\User\DeprecatedUserChangeEmail\DeprecatedUserChangeEmailRequestBody;
$client = MittwaldAPIClient::newWithToken(getenv('MITTWALD_API_TOKEN'));
// TODO: Please consult the properties and constructor signature of
// DeprecatedUserChangeEmailRequestBody to learn how to construct a valid instance
$body = new DeprecatedUserChangeEmailRequestBody(/* TODO: ... */);
$request = (new DeprecatedUserChangeEmailRequest(
body: $body
));
$response = $client->user()->deprecatedUserChangeEmail($request);
var_dump($response->getBody();