Updates an existing account
curl --request PUT \
--url https://ledgersyncappv2.com/api/v2/account/update \
--header 'Auth-Token: <auth-token>' \
--header 'Content-Type: application/json' \
--data '
{
"bankAccountId": 123,
"name": "<string>"
}
'import requests
url = "https://ledgersyncappv2.com/api/v2/account/update"
payload = {
"bankAccountId": 123,
"name": "<string>"
}
headers = {
"Auth-Token": "<auth-token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Auth-Token': '<auth-token>', 'Content-Type': 'application/json'},
body: JSON.stringify({bankAccountId: 123, name: '<string>'})
};
fetch('https://ledgersyncappv2.com/api/v2/account/update', 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://ledgersyncappv2.com/api/v2/account/update",
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([
'bankAccountId' => 123,
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Auth-Token: <auth-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://ledgersyncappv2.com/api/v2/account/update"
payload := strings.NewReader("{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Auth-Token", "<auth-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://ledgersyncappv2.com/api/v2/account/update")
.header("Auth-Token", "<auth-token>")
.header("Content-Type", "application/json")
.body("{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgersyncappv2.com/api/v2/account/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Auth-Token"] = '<auth-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"<string>""<string>""<string>"account-api
Updates an existing account
PUT
/
api
/
v2
/
account
/
update
Updates an existing account
curl --request PUT \
--url https://ledgersyncappv2.com/api/v2/account/update \
--header 'Auth-Token: <auth-token>' \
--header 'Content-Type: application/json' \
--data '
{
"bankAccountId": 123,
"name": "<string>"
}
'import requests
url = "https://ledgersyncappv2.com/api/v2/account/update"
payload = {
"bankAccountId": 123,
"name": "<string>"
}
headers = {
"Auth-Token": "<auth-token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'Auth-Token': '<auth-token>', 'Content-Type': 'application/json'},
body: JSON.stringify({bankAccountId: 123, name: '<string>'})
};
fetch('https://ledgersyncappv2.com/api/v2/account/update', 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://ledgersyncappv2.com/api/v2/account/update",
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([
'bankAccountId' => 123,
'name' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Auth-Token: <auth-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://ledgersyncappv2.com/api/v2/account/update"
payload := strings.NewReader("{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Auth-Token", "<auth-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://ledgersyncappv2.com/api/v2/account/update")
.header("Auth-Token", "<auth-token>")
.header("Content-Type", "application/json")
.body("{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://ledgersyncappv2.com/api/v2/account/update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Auth-Token"] = '<auth-token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"bankAccountId\": 123,\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body"<string>""<string>""<string>"Body
application/json
Response
Account successfully updated
Renames the bank connection bankAccountId to name. Set the optional source field to MX to rename an MX connection; omit it (or use FINICITY) for a Finicity connection. Connection ids are per provider, so the same id can name a different connection under each source.
The response is of type string.
