Pinter
ENID
Preferences
Lihat sebagai Markdown

Update Personalization Preferences

PUT/api/governance/preferences

Overview

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 | null
personal_instructionstring | null
response_styleenum | null
default_agent_idstring | null
themeenum | null
background_presetenum | null
pet_idenum | null
custom_background_urlstring | null
response_bubble_colorstring | null
response_bubble_opacityinteger | null
user_bubble_colorstring | null
user_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[]wajib
detail[].msgstringwajib
detail[].typestringwajib
detail[].inputobject
detail[].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}'