Save a versioned bot

Saves a versioned copy of the current scratch copy of the bot code. This must be done prior to deploying bot code.

Resource URL:


Resource information:

Response formatJSON
Requires authentication?Yes

Sample code:

curl -X POST \
 -u '[SID]:[TOKEN]' \
 -H 'Content-Type: application/json' \

# Sample response
  "version_id": 1,
  "source": "var bot = {};",
  "created_at": "2017-02-22T23:01:49.186Z",
  "updated_at": "2017-02-22T23:01:49.186Z",
  "sid": "3mesNha3El_vwtUUC-iW8Q",
  "bot_sid": "M023pJRT9yNmt-5RjTQBwQ"
Python coming soon.
Node coming soon.