Skip to main content
POST
Create command

Авторизации

Authorization
string
header
обязательно

API token from the Zenedu dashboard

Параметры пути

bot
integer
обязательно

Bot ID

Тело

application/json
name
string
обязательно

Command name without slash, cannot be start

Maximum string length: 255
Pattern: ^[a-z0-9_]+$
description
string
обязательно
Maximum string length: 255
action
enum<string>
обязательно

Command action. Special actions (manage subscriptions, manage affiliate program) are accepted as well

Доступные опции:
send_step,
send_funnel_step,
product_navigation,
funnel_navigation,
add_to_product,
add_to_funnel,
manage_subscriptions,
manage_affiliate_program
settings
object | null

Action settings

Ответ

Command created

data
object