cURL
curl --request PATCH \
--url https://your-environment.cloud.veda.net/api/v1/persons/{id} \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
{
"street": "Carl-Zeiss-Straße",
"houseNumber": "14",
"additionalAddressInfo": "<string>",
"zipCode": "52477",
"city": "Alsdorf",
"stateCode": "DE-NW",
"country": "DE"
}
],
"bankDetails": {
"iban": "DE07123412341234123412",
"bic": "DEUTDEFF",
"payee": "Hein Janmaat"
}
}
'import requests
url = "https://your-environment.cloud.veda.net/api/v1/persons/{id}"
payload = {
"addresses": [
{
"street": "Carl-Zeiss-Straße",
"houseNumber": "14",
"additionalAddressInfo": "<string>",
"zipCode": "52477",
"city": "Alsdorf",
"stateCode": "DE-NW",
"country": "DE"
}
],
"bankDetails": {
"iban": "DE07123412341234123412",
"bic": "DEUTDEFF",
"payee": "Hein Janmaat"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
addresses: [
{
street: 'Carl-Zeiss-Straße',
houseNumber: '14',
additionalAddressInfo: '<string>',
zipCode: '52477',
city: 'Alsdorf',
stateCode: 'DE-NW',
country: 'DE'
}
],
bankDetails: {iban: 'DE07123412341234123412', bic: 'DEUTDEFF', payee: 'Hein Janmaat'}
})
};
fetch('https://your-environment.cloud.veda.net/api/v1/persons/{id}', 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://your-environment.cloud.veda.net/api/v1/persons/{id}",
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([
'addresses' => [
[
'street' => 'Carl-Zeiss-Straße',
'houseNumber' => '14',
'additionalAddressInfo' => '<string>',
'zipCode' => '52477',
'city' => 'Alsdorf',
'stateCode' => 'DE-NW',
'country' => 'DE'
]
],
'bankDetails' => [
'iban' => 'DE07123412341234123412',
'bic' => 'DEUTDEFF',
'payee' => 'Hein Janmaat'
]
]),
CURLOPT_HTTPHEADER => [
"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://your-environment.cloud.veda.net/api/v1/persons/{id}"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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("https://your-environment.cloud.veda.net/api/v1/persons/{id}")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-environment.cloud.veda.net/api/v1/persons/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}"
response = http.request(request)
puts response.read_bodyEmployees & Organisation
Person By ID
PATCH
/
api
/
v1
/
persons
/
{id}
cURL
curl --request PATCH \
--url https://your-environment.cloud.veda.net/api/v1/persons/{id} \
--header 'Content-Type: application/json' \
--data '
{
"addresses": [
{
"street": "Carl-Zeiss-Straße",
"houseNumber": "14",
"additionalAddressInfo": "<string>",
"zipCode": "52477",
"city": "Alsdorf",
"stateCode": "DE-NW",
"country": "DE"
}
],
"bankDetails": {
"iban": "DE07123412341234123412",
"bic": "DEUTDEFF",
"payee": "Hein Janmaat"
}
}
'import requests
url = "https://your-environment.cloud.veda.net/api/v1/persons/{id}"
payload = {
"addresses": [
{
"street": "Carl-Zeiss-Straße",
"houseNumber": "14",
"additionalAddressInfo": "<string>",
"zipCode": "52477",
"city": "Alsdorf",
"stateCode": "DE-NW",
"country": "DE"
}
],
"bankDetails": {
"iban": "DE07123412341234123412",
"bic": "DEUTDEFF",
"payee": "Hein Janmaat"
}
}
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
addresses: [
{
street: 'Carl-Zeiss-Straße',
houseNumber: '14',
additionalAddressInfo: '<string>',
zipCode: '52477',
city: 'Alsdorf',
stateCode: 'DE-NW',
country: 'DE'
}
],
bankDetails: {iban: 'DE07123412341234123412', bic: 'DEUTDEFF', payee: 'Hein Janmaat'}
})
};
fetch('https://your-environment.cloud.veda.net/api/v1/persons/{id}', 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://your-environment.cloud.veda.net/api/v1/persons/{id}",
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([
'addresses' => [
[
'street' => 'Carl-Zeiss-Straße',
'houseNumber' => '14',
'additionalAddressInfo' => '<string>',
'zipCode' => '52477',
'city' => 'Alsdorf',
'stateCode' => 'DE-NW',
'country' => 'DE'
]
],
'bankDetails' => [
'iban' => 'DE07123412341234123412',
'bic' => 'DEUTDEFF',
'payee' => 'Hein Janmaat'
]
]),
CURLOPT_HTTPHEADER => [
"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://your-environment.cloud.veda.net/api/v1/persons/{id}"
payload := strings.NewReader("{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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("https://your-environment.cloud.veda.net/api/v1/persons/{id}")
.header("Content-Type", "application/json")
.body("{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-environment.cloud.veda.net/api/v1/persons/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"addresses\": [\n {\n \"street\": \"Carl-Zeiss-Straße\",\n \"houseNumber\": \"14\",\n \"additionalAddressInfo\": \"<string>\",\n \"zipCode\": \"52477\",\n \"city\": \"Alsdorf\",\n \"stateCode\": \"DE-NW\",\n \"country\": \"DE\"\n }\n ],\n \"bankDetails\": {\n \"iban\": \"DE07123412341234123412\",\n \"bic\": \"DEUTDEFF\",\n \"payee\": \"Hein Janmaat\"\n }\n}"
response = http.request(request)
puts response.read_bodyWhile the endpoint itself supports the patch mechanism and individual fields can be transferred, this does not apply to the contents of those fields. For example, if only part of an address is transferred, it is stored exactly as it is, and any additional information is discarded.
Path Parameters
Body
application/json
Response
200
OK
Was this page helpful?