Request an email-change confirmation link (verified users only).
curl --request POST \
--url https://tryno.io/api/auth/request-email-change \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"newEmail": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({newEmail: '<string>'})
};
fetch('https://tryno.io/api/auth/request-email-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/auth/request-email-change"
payload = { "newEmail": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}auth
Request an email-change confirmation link (verified users only).
POST
/
auth
/
request-email-change
Request an email-change confirmation link (verified users only).
curl --request POST \
--url https://tryno.io/api/auth/request-email-change \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"newEmail": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({newEmail: '<string>'})
};
fetch('https://tryno.io/api/auth/request-email-change', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/auth/request-email-change"
payload = { "newEmail": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}
