/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))
}Consumer (B2C)
Update consumer profile
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))
}Updates non-empty
name, region_code, and language values. Names are limited to 200 characters. Supported region values are US, EU, AF, GB, CA, AU, and SG; supported languages are en, es, fr, de, and zh.
Region is an account preference: setting it does not migrate existing data or provide a residency guarantee. Notification settings are not supported by this handler; submitting them returns HTTP 501 and leaves settings unchanged. Success returns {"status":"updated"}.
