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