Update authenticated user password
curl --request PUT \
--url https://app.flextell.ai/api/v1/account/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"password": "<string>",
"password_confirmation": "<string>",
"revoke_other_tokens": true
}
'import requests
url = "https://app.flextell.ai/api/v1/account/password"
payload = {
"current_password": "<string>",
"password": "<string>",
"password_confirmation": "<string>",
"revoke_other_tokens": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
current_password: '<string>',
password: '<string>',
password_confirmation: '<string>',
revoke_other_tokens: true
})
};
fetch('https://app.flextell.ai/api/v1/account/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.flextell.ai/api/v1/account/password",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'current_password' => '<string>',
'password' => '<string>',
'password_confirmation' => '<string>',
'revoke_other_tokens' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.flextell.ai/api/v1/account/password"
payload := strings.NewReader("{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.flextell.ai/api/v1/account/password")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.flextell.ai/api/v1/account/password")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}"
response = http.request(request)
puts response.read_body{
"success": "<string>",
"data": {
"message": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Hesap
Update authenticated user password
Signs the user out of every other browser session and invalidates “remember me” on all devices. Other OAuth access tokens are revoked as well when revoke_other_tokens is true.
PUT
/
v1
/
account
/
password
Update authenticated user password
curl --request PUT \
--url https://app.flextell.ai/api/v1/account/password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"current_password": "<string>",
"password": "<string>",
"password_confirmation": "<string>",
"revoke_other_tokens": true
}
'import requests
url = "https://app.flextell.ai/api/v1/account/password"
payload = {
"current_password": "<string>",
"password": "<string>",
"password_confirmation": "<string>",
"revoke_other_tokens": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
current_password: '<string>',
password: '<string>',
password_confirmation: '<string>',
revoke_other_tokens: true
})
};
fetch('https://app.flextell.ai/api/v1/account/password', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.flextell.ai/api/v1/account/password",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'current_password' => '<string>',
'password' => '<string>',
'password_confirmation' => '<string>',
'revoke_other_tokens' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.flextell.ai/api/v1/account/password"
payload := strings.NewReader("{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://app.flextell.ai/api/v1/account/password")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.flextell.ai/api/v1/account/password")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"current_password\": \"<string>\",\n \"password\": \"<string>\",\n \"password_confirmation\": \"<string>\",\n \"revoke_other_tokens\": true\n}"
response = http.request(request)
puts response.read_body{
"success": "<string>",
"data": {
"message": "<string>"
}
}{
"message": "<string>"
}{
"message": "<string>",
"errors": {}
}Yetkilendirmeler
oauth2bearer
The access token received from the authorization server in the OAuth 2.0 flow.
Gövde
application/json
The current account password.
The password.
Whether to also revoke every other OAuth access token (and its refresh token) of the account. The token used for this request stays valid. Defaults to false.