Изменить email профиля
POST
/api/v1/profiles/change_email
const url = 'https://core.example.com/api/v1/profiles/change_email';const options = { method: 'POST', headers: {'session-token': '<session-token>', 'Content-Type': 'application/json'}, body: '{"new_email":"hello@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://core.example.com/api/v1/profiles/change_email \ --header 'Content-Type: application/json' \ --header 'session-token: <session-token>' \ --data '{ "new_email": "hello@example.com" }'Authorizations
Заголовок раздела «Authorizations»Parameters
Заголовок раздела « Parameters »Header Parameters
Заголовок раздела «Header Parameters»check-confirmed
boolean
skip-validate
boolean
Request Bodyrequired
Заголовок раздела «Request Bodyrequired»Media typeapplication/json
object
new_email
required
string format: email
Examplegenerated
{ "new_email": "hello@example.com"}Responses
Заголовок раздела « Responses »Результат смены; занятый email возвращается как успешный HTTP 200
Media typeapplication/json
object
success
required
boolean
status
required
integer
change_email
string
Example
{ "success": true, "status": 200, "change_email": "Email changed"}