Skip to main content

Confirm User's Change Email

This endpoint confirms email change

info

This operation does not require authentication.

HTTP Request

POST /api/v2/user/{id}/confirm_email/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this user
new_emailbodystring(email)trueNew email to confirm
validation_codebodystringfalseValidation code obtained with Change User's Email

Example Body Parameters

{
"new_email": "string",
"validation_code": "string"
}

Example Request

const inputBody = '{
"new_email": "string",
"confirm": "boolean",
"validation_code": "string"
}';
const headers = {
'Content-Type':'application/x-www-form-urlencoded',
'Accept':'application/json',
'Authorization: Bearer <token>'
};

fetch('/api/v2/user/{id}/confirm_email/',
{
method: 'POST',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
204No ContentResponse status codeNone