Change the session user's password.
curl --request POST \
--url https://api.symbiosis.markets/auth/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"new_password": "<string>",
"revoke_api_keys": true
}
'import requests
url = "https://api.symbiosis.markets/auth/change-password"
payload = {
"current_password": "<string>",
"new_password": "<string>",
"revoke_api_keys": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({current_password: '<string>', new_password: '<string>', revoke_api_keys: true})
};
fetch('https://api.symbiosis.markets/auth/change-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>"
}Auth
Change the session user's password.
Requires the current password. Every session is revoked in the same transaction, the caller’s included; the response carries its replacement token. Set revoke_api_keys to also revoke all of the user’s API keys.
POST
/
auth
/
change-password
Change the session user's password.
curl --request POST \
--url https://api.symbiosis.markets/auth/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"new_password": "<string>",
"revoke_api_keys": true
}
'import requests
url = "https://api.symbiosis.markets/auth/change-password"
payload = {
"current_password": "<string>",
"new_password": "<string>",
"revoke_api_keys": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({current_password: '<string>', new_password: '<string>', revoke_api_keys: true})
};
fetch('https://api.symbiosis.markets/auth/change-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"token": "<string>"
}Authorizations
Session token from POST /auth/login.
Body
application/json
Response
The caller's old session died with the change; this is its replacement.
The caller's old session died with the change; this is its replacement.