Skip to main content
POST
/
purchases
/
{orderId}
/
edit-ai-chatbots
Edit AI Chatbots
curl --request POST \
  --url https://api.streamskill.pro/v1/purchases/{orderId}/edit-ai-chatbots \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "language": "auto",
  "count": 50,
  "interval": 10
}
'
{
  "status": "ok"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Language
enum<string>
default:en

The language of the response

Available options:
en,
ru

Path Parameters

orderId
integer
required

The ID of the order

Body

application/json

All parameters are optional. Only pass the parameters you want to change.

language
string

Speech recognition language code (e.g. 'auto', 'en', 'ru'). See /tariffs for available options.

Example:

"auto"

count
integer

Number of chatbots (cannot exceed the originally purchased amount)

Required range: x >= 1
Example:

50

interval
integer

Interval between messages in seconds. Minimum depends on count: ceil(60 / count), at least 1.

Required range: 1 <= x <= 60
Example:

10

Response

Action Success

status
string

The status of the action

Example:

"ok"