curl --request PUT \
--url https://api.example.com/api/v1/content/person-voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tone": "",
"style": "",
"topics": [
"<string>"
],
"do_guidelines": [
"<string>"
],
"dont_guidelines": [
"<string>"
],
"sample_snippets": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/content/person-voice"
payload = {
"tone": "",
"style": "",
"topics": ["<string>"],
"do_guidelines": ["<string>"],
"dont_guidelines": ["<string>"],
"sample_snippets": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tone: '',
style: '',
topics: ['<string>'],
do_guidelines: ['<string>'],
dont_guidelines: ['<string>'],
sample_snippets: ['<string>']
})
};
fetch('https://api.example.com/api/v1/content/person-voice', 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://api.example.com/api/v1/content/person-voice",
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([
'tone' => '',
'style' => '',
'topics' => [
'<string>'
],
'do_guidelines' => [
'<string>'
],
'dont_guidelines' => [
'<string>'
],
'sample_snippets' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://api.example.com/api/v1/content/person-voice"
payload := strings.NewReader("{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\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))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/v1/content/person-voice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/content/person-voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"tone": "",
"style": "",
"topics": [
"<string>"
],
"do_guidelines": [
"<string>"
],
"dont_guidelines": [
"<string>"
],
"sample_snippets": [
"<string>"
],
"linkedin_arm_status": "<string>",
"linkedin_arm_detail": "<string>",
"x_arm_status": "<string>",
"x_arm_detail": "<string>",
"derived_at": "2023-11-07T05:31:56Z",
"manually_edited_at": "2023-11-07T05:31:56Z",
"derivation_version": 123,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Save Person Voice Edits
Persist a USER-EDITED person voice and stamp manually_edited_at so future
auto-derives no-clobber it.
Only the editable voice fields (PersonVoiceUpdateRequest: tone/style/topics/do/
dont/sample_snippets) are accepted; the client can NOT write arm-status / provenance /
internal columns (undeclared on the request model AND not in the service voice
allowlist). manually_edited_at is stamped server-side via the trusted provenance
channel. Scoped to the authenticated actor (org_context.user_id).
curl --request PUT \
--url https://api.example.com/api/v1/content/person-voice \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tone": "",
"style": "",
"topics": [
"<string>"
],
"do_guidelines": [
"<string>"
],
"dont_guidelines": [
"<string>"
],
"sample_snippets": [
"<string>"
]
}
'import requests
url = "https://api.example.com/api/v1/content/person-voice"
payload = {
"tone": "",
"style": "",
"topics": ["<string>"],
"do_guidelines": ["<string>"],
"dont_guidelines": ["<string>"],
"sample_snippets": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tone: '',
style: '',
topics: ['<string>'],
do_guidelines: ['<string>'],
dont_guidelines: ['<string>'],
sample_snippets: ['<string>']
})
};
fetch('https://api.example.com/api/v1/content/person-voice', 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://api.example.com/api/v1/content/person-voice",
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([
'tone' => '',
'style' => '',
'topics' => [
'<string>'
],
'do_guidelines' => [
'<string>'
],
'dont_guidelines' => [
'<string>'
],
'sample_snippets' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <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://api.example.com/api/v1/content/person-voice"
payload := strings.NewReader("{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\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))
}HttpResponse<String> response = Unirest.put("https://api.example.com/api/v1/content/person-voice")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/content/person-voice")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tone\": \"\",\n \"style\": \"\",\n \"topics\": [\n \"<string>\"\n ],\n \"do_guidelines\": [\n \"<string>\"\n ],\n \"dont_guidelines\": [\n \"<string>\"\n ],\n \"sample_snippets\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"tone": "",
"style": "",
"topics": [
"<string>"
],
"do_guidelines": [
"<string>"
],
"dont_guidelines": [
"<string>"
],
"sample_snippets": [
"<string>"
],
"linkedin_arm_status": "<string>",
"linkedin_arm_detail": "<string>",
"x_arm_status": "<string>",
"x_arm_detail": "<string>",
"derived_at": "2023-11-07T05:31:56Z",
"manually_edited_at": "2023-11-07T05:31:56Z",
"derivation_version": 123,
"updated_at": "2023-11-07T05:31:56Z"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Save-edits payload (PUT). ONLY the editable voice fields are declared, so a client
can never write arm-status / provenance / internal columns (an undeclared field is
silently dropped — critical pattern #58 — and the service additionally allowlists). No
positioning (company layer). The route stamps manually_edited_at server-side so
future auto-derives no-clobber the user's edits.
20002000255002550025500251000Response
Successful Response
The persisted PERSON voice (+ per-arm status + provenance). updated_at null
means no row yet -- the FE auto-derive-and-saves on first load. The arm-status
columns are the migration-249 CHECK vocabulary ('ok'/'absent'/'error') and may be
null until a derive has run; the *_arm_detail carry the original rich reason.