Skip to main content
POST
Create product

Авторизации

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

API token from the Zenedu dashboard

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

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

Bot ID

Тело

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

Product name

Maximum string length: 255
platform
enum<string>
обязательно

Platform: miniApp or bot

Доступные опции:
miniApp,
bot
folder_id
integer | null

Folder ID

template_code
string | null

Template code

offer_id
integer | null

Existing offer ID of the bot; cannot be combined with offer

offer
object

New offer to create together with the product. Same fields as the create offer request; mutually exclusive with offer_id. Product only.

Ответ

Created product; offer_id is the ID of the attached or created offer, if any

data
object
offer_id
integer | null

Attached or created offer ID