Перейти к содержимому

Update Settings

PUT
/v1/settings
curl --request PUT \
--url https://api.cloud.agentums.ru/v1/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "auto_rename_mode": "auto", "calendar_reminders_telegram": true, "chat_memory": true, "proactive": true, "timezone": "example", "ui": {} }'

Изменить настройки. Несмотря на PUT, тело частичное: незаданные поля сохраняются, а не обнуляются. Размер ui ограничен — превышение даёт 400.

Media typeapplication/json
SettingsUpdate
object
auto_rename_mode
Any of:
string
Allowed values: auto dont_rename manual
calendar_reminders_telegram
Any of:
boolean
chat_memory
Any of:
boolean
proactive
Any of:
boolean
timezone
Any of:
string
ui
Any of:
object
key
additional properties
any

Successful Response

Media typeapplication/json
SettingsOut
object
auto_rename_mode
Auto Rename Mode
string
default: dont_rename
calendar_reminders_telegram
Calendar Reminders Telegram
boolean
chat_memory
Chat Memory
boolean
default: true
prefs
Prefs
object
key
additional properties
any
proactive
Proactive
boolean
timezone
Timezone
string
""
ui
Ui
object
key
additional properties
any
Example
{
"auto_rename_mode": "dont_rename",
"calendar_reminders_telegram": false,
"chat_memory": true,
"prefs": {},
"proactive": false,
"timezone": "",
"ui": {}
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}