Bots.Business API v2
  1. Admin Panel
Bots.Business API v2
  • Bots.Business API v2
    • BB Api docs
    • Authentication
      • Sign in
      • Get Telegram login URL
      • Sign up
      • Telegram login
      • Reset Password
    • User account
      • Update password
      • Get user details
      • Update email
      • Get linked telegram accounts
      • Get telegram link url
      • Get users session token
      • Reset api key
      • Log out all device
      • Get iteration usage
      • Turn ON or OFF ads
      • Get payment plan
    • Bots
      • Create Bot
      • Get Bots
      • Get single bot
      • Edit Bot
      • Delete Bot
      • Start or Stop bot
      • Start CSV import
      • CSV import task status
      • Copy Bot
      • Git export
      • Git import
      • Get installed libraries
      • Install Lib
      • Uninstall lib
      • Get error log
      • Clear error logs
    • Commands
      • Folders
        • Create a folder
        • Get all folders
        • Delete a folder
      • Get Commands
      • Create Command
      • Get Command Details
      • Edit Command
      • Delete Command
    • Broadcast
      • Get broadcast tasks
      • Delete Broadcast task
      • Pause broadcast task
      • Resume broadcast task
    • Chats
      • Get chats
      • Block chat
      • Unblock chat
    • Properties
      • Get properties
      • Delete property
    • Libraries
      • Get libraries
    • Admin Panel
      • Get admin panels
        GET
      • Update admin panel values
        PUT
    • Demo Store
      • Get store bots
      • Install demo bot
    • Get cloud plans
      GET
    • Schemas
      • Command Schema
      • User Public
      • Create & Edit Bot
      • Bot
  1. Admin Panel

Update admin panel values

PUT
https://api.bots.business/v2/bots/{id}/active_options/{panel_id}
Last modified:2025-10-31 10:37:20
Use this endpoint to update the values of specific fields within an admin panel. This allows you to modify configuration settings and panel properties.

Request

Path Params

Query Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
You will get updated panel
Body

🟠401Unauthorized
🟠404Not Found
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.bots.business/v2/bots/123/active_options/1234?api_key=UKDZu-c68cubrIbniuE2P_nWj0p5r4IHARNrAV-I' \
--header 'Content-Type: application/json' \
--data-raw '{
    "title": "Example Admin Panel",
    "description": "This panel demonstrates all available field types",
    "icon": "settings",
    "fields": [
        {
            "title": "Bot Name",
            "description": "The display name of your bot",
            "placeholder": "My Awesome Bot",
            "type": "string",
            "icon": "chatbubble",
            "name": "BOT_NAME",
            "value": "My new bot1"
        },
        {
            "title": "API Secret Key",
            "description": "Your secure API key (will be hidden)",
            "placeholder": "Enter your secret key",
            "type": "password",
            "icon": "key",
            "name": "API_SECRET",
            "value": ""
        },
        {
            "title": "Maximum Users",
            "description": "Maximum number of users allowed",
            "placeholder": "1000",
            "type": "integer",
            "icon": "people",
            "name": "MAX_USERS",
            "value": 500
        },
        {
            "title": "Product Price",
            "description": "Price of your product (supports decimals)",
            "placeholder": "19.99",
            "type": "float",
            "icon": "pricetag",
            "name": "PRICE",
            "value": 9.99
        },
        {
            "title": "Bot Active",
            "description": "Enable or disable the bot functionality",
            "placeholder": null,
            "type": "checkbox",
            "icon": "power",
            "name": "IS_ACTIVE",
            "value": true
        },
        {
            "title": "Welcome Message",
            "description": "Message sent to new users",
            "placeholder": "Enter your welcome message here...",
            "type": "text",
            "icon": "document-text",
            "name": "WELCOME_MESSAGE",
            "value": "Hello! Welcome to our bot!"
        }
    ],
    "button_title": "SAVE CONFIGURATION"
}'
Response Response Example
200 - Success
{
    "title": "Example Admin Panel",
    "description": "This panel demonstrates all available field types",
    "index": 0,
    "icon": "settings",
    "button_title": "SAVE CONFIGURATION",
    "on_saving": {
        "command": "/on-admin-panel-save",
        "user_id": 42470958
    },
    "fields": [
        {
            "name": "BOT_NAME",
            "title": "Bot Name",
            "description": "The display name of your bot",
            "type": "string",
            "placeholder": "My Awesome Bot",
            "value": "My Bot",
            "icon": "chatbubble"
        },
        {
            "name": "API_SECRET",
            "title": "API Secret Key",
            "description": "Your secure API key (will be hidden)",
            "type": "password",
            "placeholder": "Enter your secret key",
            "value": "",
            "icon": "key"
        },
        {
            "name": "MAX_USERS",
            "title": "Maximum Users",
            "description": "Maximum number of users allowed",
            "type": "integer",
            "placeholder": "1000",
            "value": 500,
            "icon": "people"
        },
        {
            "name": "PRICE",
            "title": "Product Price",
            "description": "Price of your product (supports decimals)",
            "type": "float",
            "placeholder": "19.99",
            "value": 9.99,
            "icon": "pricetag"
        },
        {
            "name": "IS_ACTIVE",
            "title": "Bot Active",
            "description": "Enable or disable the bot functionality",
            "type": "checkbox",
            "value": true,
            "icon": "power"
        },
        {
            "name": "WELCOME_MESSAGE",
            "title": "Welcome Message",
            "description": "Message sent to new users",
            "type": "text",
            "placeholder": "Enter your welcome message here...",
            "value": "Hello! Welcome to our bot!",
            "icon": "document-text"
        }
    ]
}
Modified at 2025-10-31 10:37:20
Previous
Get admin panels
Next
Get store bots
Built with