authentication
Change Password
Replace the signed-in user’s password and revoke their other sessions.
PUT
/
api
/
account
/
password
Change Password
curl --request PUT \
--url https://api.aixy-gateway.com/api/account/password \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"current_password": "<string>",
"new_password": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/account/password"
payload = {
"current_password": "<string>",
"new_password": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({current_password: '<string>', new_password: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/account/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
Change Password
curl --request PUT \
--url https://api.aixy-gateway.com/api/account/password \
--header 'Content-Type: application/json' \
--cookie gateway_session= \
--data '
{
"current_password": "<string>",
"new_password": "<string>"
}
'import requests
url = "https://api.aixy-gateway.com/api/account/password"
payload = {
"current_password": "<string>",
"new_password": "<string>"
}
headers = {
"cookie": "gateway_session=",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {cookie: 'gateway_session=', 'Content-Type': 'application/json'},
body: JSON.stringify({current_password: '<string>', new_password: '<string>'})
};
fetch('https://api.aixy-gateway.com/api/account/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}