cURL
curl --request GET \ --url https://api.example.com/api/v2/user/settings \ --header 'Content-Type: application/json' \ --data ' { "language": "<string>", "image_format": "<string>", "notifications_enabled": true } '
Получение и обновление предпочтений пользователя
curl https://neuralbox.top/api/v2/user/settings \ -H "Authorization: Bearer nb_ВАШ_КЛЮЧ"
{ "language": "ru", "image_format": "webp", "notifications_enabled": true, "default_image_size": "1024x1024" }
curl -X PATCH https://neuralbox.top/api/v2/user/settings \ -H "Authorization: Bearer nb_ВАШ_КЛЮЧ" \ -H "Content-Type: application/json" \ -d '{"image_format": "png", "language": "en"}'
en
ru
webp
png
jpeg
200 OK