cURL
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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The language of the response
en
ru
The ID of the order
The interval of the chatbot
x >= 1
10
The mode of the chatbot (0 - random, 1 - sequential)
0
1
The phrases of the chatbot
["test1", "test2"]
Action Success
The status of the action
"ok"