Skip to main content
POST
/
api
/
bot
/
config
cURL
curl --request POST \
  --url https://api.production.hyperoru.com/api/bot/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "bot_type": "<string>",
  "id": 123,
  "is_active": true,
  "chat_id": "<string>",
  "created_at": "<string>"
}

Authorizations

Authorization
string
header
required

Session token issued by POST /api/users/login, transported as Authorization: Bearer <token>.

Body

application/json

Generic free-form JSON object used as a fallback response schema for endpoints whose payload is large, deeply nested, or best documented via their narrative description rather than a fixed Rust type.

Named so it shows up as a proper $ref in the generated spec instead of a bare serde_json::Value; clients that want stricter typing should reach for the domain-specific DTOs declared alongside the relevant handler.

Response

Bot configuration saved

Bot config entry.

bot_type
string
required
id
integer<int32>
required
is_active
boolean
required
chat_id
string | null
created_at
string | null