POST
/
purchases
/
{orderId}
/
edit-chatbot
curl --request POST \
  --url https://api.streamskill.pro/v1/purchases/{orderId}/edit-chatbot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "interval": 10,
  "mode": 1,
  "phrases": [
    "test1",
    "test2"
  ]
}'
{
  "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
interval
integer

The interval of the chatbot

Required range: x >= 1
Example:

10

mode
enum<integer>

The mode of the chatbot (0 - random, 1 - sequential)

Available options:
0,
1
Example:

1

phrases
string[]

The phrases of the chatbot

Example:
["test1", "test2"]

Response

200
application/json
Action Success
status
string

The status of the action

Example:

"ok"