Updated name for the bot, which must be unique to the channel.
Response format | JSON |
---|---|
Requires authentication? | Yes |
name required | Updated bot name. |
---|
curl -X PUT \
-u '[SID]:[TOKEN]' \
-H 'Content-Type: application/json' \
'https://api.essential.to/bots/v1/update/M023pJRT9yNmt-5RjTQBwQ' \
-d '{"name":"New Sample bot"}'
# Sample response
{
"name": "New Sample bot",
"deployed": false,
"created_at": "2017-02-22T22:18:10.000Z",
"updated_at": "2017-02-22T22:33:15.893Z",
"provisioned": true,
"sid": "M023pJRT9yNmt-5RjTQBwQ",
"channel_sids": [
"Mc0bsmU9h7kn9h9UJVwg3Q"
]
}
Python coming soon.
Node coming soon.