cURL
curl --request PATCH \
--url http://localhost:3000/connect/v1/accounts/users/{hashid}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
}
'import requests
url = "http://localhost:3000/connect/v1/accounts/users/{hashid}/"
payload = {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
dob: '2023-12-25',
phone: '<string>',
address: '<string>',
updated_email: 'jsmith@example.com',
default_entity: '<string>',
accepted_policy: '<string>',
language: '<string>'
})
};
fetch('http://localhost:3000/connect/v1/accounts/users/{hashid}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/connect/v1/accounts/users/{hashid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => 'jsmith@example.com',
'dob' => '2023-12-25',
'phone' => '<string>',
'address' => '<string>',
'updated_email' => 'jsmith@example.com',
'default_entity' => '<string>',
'accepted_policy' => '<string>',
'language' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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 := "http://localhost:3000/connect/v1/accounts/users/{hashid}/"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("http://localhost:3000/connect/v1/accounts/users/{hashid}/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/connect/v1/accounts/users/{hashid}/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"image": "<string>",
"updated_email": "jsmith@example.com",
"managing_entitys": [
"<string>"
],
"default_entity": "<string>",
"accepted_policy": "<string>",
"policy_accepted": "<string>",
"current_policy": "<string>",
"language": "<string>"
}Accounts
Update User Endpoint
API Update User endpoint allows you to update user information by making a PATCH request with the user’s unique identifier (hashid). This endpoint enables you to modify specific user details, such as name, email, date of birth, phone number, and more.
PATCH
/
accounts
/
users
/
{hashid}
/
cURL
curl --request PATCH \
--url http://localhost:3000/connect/v1/accounts/users/{hashid}/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
}
'import requests
url = "http://localhost:3000/connect/v1/accounts/users/{hashid}/"
payload = {
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"updated_email": "jsmith@example.com",
"default_entity": "<string>",
"accepted_policy": "<string>",
"language": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
id: '<string>',
first_name: '<string>',
last_name: '<string>',
email: 'jsmith@example.com',
dob: '2023-12-25',
phone: '<string>',
address: '<string>',
updated_email: 'jsmith@example.com',
default_entity: '<string>',
accepted_policy: '<string>',
language: '<string>'
})
};
fetch('http://localhost:3000/connect/v1/accounts/users/{hashid}/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/connect/v1/accounts/users/{hashid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'id' => '<string>',
'first_name' => '<string>',
'last_name' => '<string>',
'email' => 'jsmith@example.com',
'dob' => '2023-12-25',
'phone' => '<string>',
'address' => '<string>',
'updated_email' => 'jsmith@example.com',
'default_entity' => '<string>',
'accepted_policy' => '<string>',
'language' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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 := "http://localhost:3000/connect/v1/accounts/users/{hashid}/"
payload := strings.NewReader("{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<api-key>")
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.patch("http://localhost:3000/connect/v1/accounts/users/{hashid}/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/connect/v1/accounts/users/{hashid}/")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"id\": \"<string>\",\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"dob\": \"2023-12-25\",\n \"phone\": \"<string>\",\n \"address\": \"<string>\",\n \"updated_email\": \"jsmith@example.com\",\n \"default_entity\": \"<string>\",\n \"accepted_policy\": \"<string>\",\n \"language\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"email": "jsmith@example.com",
"dob": "2023-12-25",
"phone": "<string>",
"address": "<string>",
"image": "<string>",
"updated_email": "jsmith@example.com",
"managing_entitys": [
"<string>"
],
"default_entity": "<string>",
"accepted_policy": "<string>",
"policy_accepted": "<string>",
"current_policy": "<string>",
"language": "<string>"
}Authorizations
Path Parameters
Body
application/json
Maximum string length:
150Maximum string length:
150Maximum string length:
254Maximum string length:
2000Maximum string length:
254Minimum string length:
1Response
200 - application/json
Maximum string length:
150Maximum string length:
150Maximum string length:
254Maximum string length:
2000Maximum string length:
254Minimum string length:
1⌘I
