Preferences
Update Personalization Preferences
PUT
/api/governance/preferencesOverview
Updates preferred user name, conversational response style, and custom instructions.
Authentication & Headers
- Auth: Bearer Token
- Required Header:
API-Version: 1
Parameters & Request Body Fields
preferred_name(string, optional): How the AI agent should address the user.response_style(string, optional): Desired style (concise_bullet_points,formal,elaborate).custom_instruction(string, optional): Custom guidance appended to interactive prompts.
Body permintaan
application/json
preferred_namestring | nullpersonal_instructionstring | nullresponse_styleenum | nulldefault_agent_idstring | nullthemeenum | nullbackground_presetenum | nullpet_idenum | nullcustom_background_urlstring | nullresponse_bubble_colorstring | nullresponse_bubble_opacityinteger | nulluser_bubble_colorstring | nulluser_bubble_opacityinteger | null{
"preferred_name": "string",
"personal_instruction": "string",
"response_style": "concise",
"default_agent_id": "string",
"theme": "system",
"background_preset": "default",
"pet_id": "capybara",
"custom_background_url": "string",
"response_bubble_color": "string",
"response_bubble_opacity": 0,
"user_bubble_color": "string",
"user_bubble_opacity": 0
} Respons
200 Preferences updated
400 Bad Request - The request parameters or headers are invalid (e.g. unsupported API-Version).
401 Unauthorized - Missing, invalid, or expired JWT Bearer token.
403 Forbidden - Insufficient role permissions or resource access denied by RBAC policy.
404 Not Found - The requested resource ID was not found.
422 Validation Error
detailobject[]detail[].locstring | integer[]wajibdetail[].msgstringwajibdetail[].typestringwajibdetail[].inputobjectdetail[].ctxobject{
"detail": [
{
"loc": [
null
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Contoh
curl -X PUT "$PINTER_URL/api/governance/preferences" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"preferred_name":"string","personal_instruction":"string","response_style":"concise","default_agent_id":"string","theme":"system","background_preset":"default","pet_id":"capybara","custom_background_url":"string","response_bubble_color":"string","response_bubble_opacity":0,"user_bubble_color":"string","user_bubble_opacity":0}'