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:

POST https://api.essential.to/bots/v1/version/{bot_sid}

Resource information:

Response formatJSON
Requires authentication?Yes

Sample code:

curl -X POST \
 -u '[SID]:[TOKEN]' \
 -H 'Content-Type: application/json' \
 'https://api.essential.to/bots/v1/version/M023pJRT9yNmt-5RjTQBwQ'

# 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.