Change your password
curl --request POST \
--url https://api.glassmarkets.io/v1/user/password/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/user/password/"
payload = {
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
old_password: '<string>',
new_password: '<string>',
confirm_password: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/user/password/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}Account
Change your password
Changes the password of the logged-in user. Revokes every token of the account, including the one used for this request.
Change your password
curl --request POST \
--url https://api.glassmarkets.io/v1/user/password/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v1/user/password/"
payload = {
"old_password": "<string>",
"new_password": "<string>",
"confirm_password": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
old_password: '<string>',
new_password: '<string>',
confirm_password: '<string>'
})
};
fetch('https://api.glassmarkets.io/v1/user/password/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}Authorizations
Token-based authentication with required prefix "Token ". Example: "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
200 - application/json

