Change user password
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"new_password": "<string>",
"old_password": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({new_password: '<string>', old_password: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password"
payload = {
"new_password": "<string>",
"old_password": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Admin
Change user password
Allows authenticated system users to change their password
POST
/
admin
/
change-password
Change user password
curl --request POST \
--url https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"new_password": "<string>",
"old_password": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({new_password: '<string>', old_password: '<string>'})
};
fetch('https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://olive-gateway-a6ba.onrender.com/api/v1/admin/change-password"
payload = {
"new_password": "<string>",
"old_password": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{}{}{}Authorizations
ApiKeyAuthBearerAuth
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Response
Password changed successfully
The response is of type object.
⌘I