/v1/consumer/me
curl --request PUT \
--url https://api.truthlocks.com/v1/consumer/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"language": "<string>",
"name": "<string>",
"region_code": "<string>",
"settings": "<unknown>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
language: '<string>',
name: '<string>',
region_code: '<string>',
settings: '<unknown>'
})
};
fetch('https://api.truthlocks.com/v1/consumer/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/consumer/me"
payload = {
"language": "<string>",
"name": "<string>",
"region_code": "<string>",
"settings": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/consumer/me"
payload := strings.NewReader("{\n \"language\": \"<string>\",\n \"name\": \"<string>\",\n \"region_code\": \"<string>\",\n \"settings\": \"<unknown>\"\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))
}Verbraucher (B2C)
Verbraucherprofil aktualisieren
PUT
/
v1
/
consumer
/
me
/v1/consumer/me
curl --request PUT \
--url https://api.truthlocks.com/v1/consumer/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"language": "<string>",
"name": "<string>",
"region_code": "<string>",
"settings": "<unknown>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
language: '<string>',
name: '<string>',
region_code: '<string>',
settings: '<unknown>'
})
};
fetch('https://api.truthlocks.com/v1/consumer/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/consumer/me"
payload = {
"language": "<string>",
"name": "<string>",
"region_code": "<string>",
"settings": "<unknown>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/consumer/me"
payload := strings.NewReader("{\n \"language\": \"<string>\",\n \"name\": \"<string>\",\n \"region_code\": \"<string>\",\n \"settings\": \"<unknown>\"\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))
}Aktualisiert nicht-leere
name, region_code und language Werte. Namen sind auf 200 Zeichen begrenzt. Unterstützte Regionswerte sind US, EU, AF, GB, CA, AU und SG; unterstützte Sprachen sind en, es, fr, de und zh.
Die Region ist eine Kontoeinstellung: Das Festlegen migriert keine vorhandenen Daten oder bietet eine Residenzgarantie. Benachrichtigungs-settings werden von diesem Handler nicht unterstützt; das Senden führt zu HTTP 501 und lässt die Einstellungen unverändert. Erfolg gibt {"status":"updated"} zurück.
